From f236a6e036711921ef7c340780c6912823aa34bb Mon Sep 17 00:00:00 2001 From: Adrien Touzouli Date: Sat, 31 Aug 2024 09:00:09 +0200 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20bum=20gh-pages=20action=20?= =?UTF-8?q?version=20and=20check=20before=20deploy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/check.yml | 1 + .github/workflows/deploy-gh-page.yml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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