From 428a10d6316b56a900c654112c28ef0e22173cc5 Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Fri, 7 Jun 2024 10:50:04 +0000 Subject: [PATCH] ci(ga): use native actions to deploy Pages --- .github/workflows/pages.yml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index a587ae9..54d7a90 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -6,7 +6,7 @@ on: - master jobs: - pages: + build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -25,9 +25,20 @@ jobs: run: npm install --include=optional --force - name: Build run: npm run build - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v3 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./public - force_orphan: true + path: ./public + deploy: + runs-on: ubuntu-latest + needs: build + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4