Skip to content

Commit

Permalink
polish(pu): polish deploy.yml for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
puyuan1996 committed Jul 15, 2024
1 parent f69c577 commit dc33846
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:

steps:
- name: Checkout the repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: '3.11'

Expand All @@ -31,8 +31,13 @@ jobs:
make html
cp ../../.nojekyll ./build/html/.nojekyll
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: github-pages
path: docs/en/build/html

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
uses: actions/deploy-pages@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/en/build/html
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit dc33846

Please sign in to comment.