diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index fee624ac..c59dc24c 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -34,6 +34,13 @@ jobs: - name: Build run: pnpm run build-nocdn + + - name: Deploy to gh-pages branch + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_branch: gh-pages + publish_dir: ./dist - name: Upload artifact uses: actions/upload-pages-artifact@v3 @@ -52,7 +59,3 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./dist - publish_branch: gh-pages