fix: change git action
This commit is contained in:
11
.github/workflows/deploy-pages.yml
vendored
11
.github/workflows/deploy-pages.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user