mirror of
https://github.com/nlohmann/json.git
synced 2024-11-23 22:19:02 +08:00
💚 fix documentation deploy
This commit is contained in:
parent
1dfe4073e3
commit
6eab7a2b18
8
.github/workflows/publish_documentation.yml
vendored
8
.github/workflows/publish_documentation.yml
vendored
@ -35,9 +35,7 @@ jobs:
|
||||
run: make build -C docs/mkdocs
|
||||
|
||||
- name: Deploy documentation
|
||||
uses: crazy-max/ghaction-github-pages@v4
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
target_branch: gh-pages
|
||||
build_dir: docs/mkdocs/site
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./docs/mkdocs/site
|
||||
|
@ -21,7 +21,7 @@ style_check:
|
||||
clean:
|
||||
rm -fr docs/images/json.gif docs/examples
|
||||
|
||||
# publish site to GitHub pages (not working in GitHub Actions)
|
||||
# publish site to GitHub pages (not working in GitHub Actions; need special action)
|
||||
publish: prepare_files
|
||||
venv/bin/mkdocs gh-deploy --clean --force
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user