diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index db4b103..94814fc 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -6,9 +6,7 @@ on: workflow_dispatch: permissions: - contents: read - pages: write - id-token: write + contents: write concurrency: group: pages @@ -17,9 +15,6 @@ concurrency: jobs: deploy: runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} steps: - name: Checkout uses: actions/checkout@v4 @@ -41,16 +36,10 @@ jobs: - name: Build client run: pnpm build:client - - name: Configure Pages - uses: actions/configure-pages@v5 + - name: Deploy to gh-pages + uses: peaceiris/actions-gh-pages@v3 with: - enablement: true - - - name: Upload Packages Client - uses: actions/upload-pages-artifact@v3 - with: - path: packages/client/dist - - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: packages/client/dist + publish_branch: gh-pages + force_orphan: true