File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed
Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -38,20 +38,27 @@ jobs:
3838 - name : Upload documentation artifact
3939 uses : actions/upload-pages-artifact@v3
4040 with :
41- name : documentation
41+ name : github-pages
4242 path : Docs/build/html
4343
4444 deploy :
45- runs-on : ubuntu-latest
4645 needs : build
46+
47+ permissions :
48+ pages : write # to deploy to Pages
49+ id-token : write # to verify the deployment originates from an appropriate source
50+
51+ environment :
52+ name : github-pages
53+ url : ${{ steps.deployment.outputs.page_url }}
54+
55+ runs-on : ubuntu-latest
56+
4757 if : github.event_name == 'push' && github.ref == 'refs/heads/development'
4858 steps :
49- - name : Download documentation artifact
50- uses : actions/download-artifact@v3
51- with :
52- name : documentation
53-
54- - name : deploy to gh-pages branch
55- uses : actions/deploy-pages@v2
59+ - name : deploy to gh-pages
60+ uses : actions/deploy-pages@v4
61+ artifact_name : github-pages
62+ id : deployment
5663 with :
5764 token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments