From c3dcd86469cca0281be50255a391b787cb51e3ea Mon Sep 17 00:00:00 2001 From: WANG Xuerui Date: Sun, 21 Apr 2024 20:17:12 +0800 Subject: [PATCH 1/2] ci: fix deploy-pages version I forgot to bump this. --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8f1e8850..0191d5e4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -62,6 +62,6 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v5 - name: Deploy to GitHub Pages - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4 with: artifact_name: 'gh-pages-${{github.sha}}' From cf1dd1a8f9c71a01aac0cb6e882e1e81abc0ba66 Mon Sep 17 00:00:00 2001 From: WANG Xuerui Date: Sun, 21 Apr 2024 20:17:53 +0800 Subject: [PATCH 2/2] ci: polishes --- .github/workflows/deploy.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0191d5e4..30ad6442 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 with: submodules: true - - name: Enable Corepack + - name: Enable Corepack for Yarn Modern run: corepack enable - uses: actions/setup-node@v4 with: @@ -54,14 +54,17 @@ jobs: runs-on: ubuntu-latest needs: build_and_upload permissions: - actions: read contents: read pages: write id-token: write + environment: + name: github-pages + url: ${{ steps.deploy.outputs.page_url }} steps: - name: Setup Pages uses: actions/configure-pages@v5 - name: Deploy to GitHub Pages + id: deploy uses: actions/deploy-pages@v4 with: artifact_name: 'gh-pages-${{github.sha}}'