diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index c662642..4e1626b 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -2,6 +2,7 @@ name: pr_check on: workflow_dispatch: + workflow_call: pull_request: branches: [main] diff --git a/.github/workflows/deploy-gh-page.yml b/.github/workflows/deploy-gh-page.yml index 4931a12..5d89338 100644 --- a/.github/workflows/deploy-gh-page.yml +++ b/.github/workflows/deploy-gh-page.yml @@ -5,6 +5,9 @@ on: branches: [main] jobs: + check: + uses: ./.github/workflows/check.yml + deploy: runs-on: ubuntu-latest steps: @@ -24,7 +27,7 @@ jobs: run: trunk build --release - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./dist