Skip to content

Commit

Permalink
ci: fix gh pages deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
fz6m committed Apr 13, 2024
1 parent e78aee3 commit ff033f6
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,9 @@ jobs:
run: |
pnpm docs:build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
path: ./docs/.vitepress/dist

deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/.vitepress/dist

0 comments on commit ff033f6

Please sign in to comment.