66 # Allows you to run this workflow manually from the Actions tab
77 workflow_dispatch :
88
9- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
109permissions :
1110 contents : read
12- pages : write
13- id-token : write
1411
1512# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
1613# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
@@ -20,7 +17,7 @@ concurrency:
2017
2118jobs :
2219 # Single deploy job since we're just deploying
23- deploy :
20+ build :
2421 environment :
2522 name : github-pages
2623 url : ${{ steps.deployment.outputs.page_url }}
2926 - name : Checkout
3027 uses : actions/checkout@v3
3128 - name : Setup Pages
32- uses : actions/configure-pages@v3
29+ uses : actions/configure-pages@v4
3330 - name : Set up Python 3.12
34- uses : actions/setup-python@v3
31+ uses : actions/setup-python@v4
3532 with :
3633 python-version : " 3.12"
3734 - name : Install dependencies
4340 - name : Build static pages
4441 run : make docs-build
4542 - name : Upload artifact
46- uses : actions/upload-pages-artifact@v1
43+ uses : actions/upload-pages-artifact@v2
4744 with :
4845 path : ' ./site'
46+
47+ # Deploy job
48+ deploy :
49+ # Add a dependency to the build job
50+ needs : build
51+
52+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
53+ permissions :
54+ pages : write # to deploy to Pages
55+ id-token : write # to verify the deployment originates from an appropriate source
56+
57+ # Deploy to the github-pages environment
58+ environment :
59+ name : github-pages
60+ url : ${{ steps.deployment.outputs.page_url }}
61+
62+ # Specify runner + deployment step
63+ runs-on : ubuntu-latest
64+ steps :
4965 - name : Deploy to GitHub Pages
5066 id : deployment
51- uses : actions/deploy-pages@v2
67+ uses : actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action
0 commit comments