File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches : [main]
66 paths :
77 - ' docs/**'
8+ - ' examples/figs/**'
89 - ' geobrain/**'
910 - ' pyproject.toml'
1011 - ' .github/workflows/deploy-docs.yml'
1112 workflow_dispatch :
1213
1314permissions :
14- contents : write
15+ contents : read
16+ pages : write
17+ id-token : write
1518
1619concurrency :
1720 group : " pages"
@@ -20,6 +23,9 @@ concurrency:
2023jobs :
2124 build-and-deploy :
2225 runs-on : ubuntu-latest
26+ environment :
27+ name : github-pages
28+ url : ${{ steps.deployment.outputs.page_url }}
2329 steps :
2430 - uses : actions/checkout@v4
2531
3945 run : |
4046 jupyter-book build docs/
4147
42- - name : Deploy to GitHub Pages
43- uses : peaceiris/ actions-gh- pages@v4
48+ - name : Upload artifact
49+ uses : actions/upload- pages-artifact@v3
4450 with :
45- github_token : ${{ secrets.GITHUB_TOKEN }}
46- publish_dir : docs/_build/html
47- publish_branch : gh-pages
51+ path : docs/_build/html
52+
53+ - name : Deploy to GitHub Pages
54+ id : deployment
55+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments