Skip to content

Commit d81bdf3

Browse files
modified build_and_deploy
1 parent 79e9491 commit d81bdf3

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.github/workflows/build_and_deploy.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)