Skip to content

Commit

Permalink
Update upload_artifacts.yml
Browse files Browse the repository at this point in the history
fixed deployment step
added permissions
added environment

Signed-off-by: qthompso <[email protected]>
  • Loading branch information
qthompso authored Oct 27, 2023
1 parent 1067186 commit 132ac2a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/upload_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
publish-docs:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }} && github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- run: echo 'The Test docs workflow passed'
- name: download-artifact
Expand All @@ -31,3 +37,5 @@ jobs:
path: docs_results/.results_docs/html
- name: deploy-to-github-pages
uses: actions/deploy-pages@v2
id: deployment

0 comments on commit 132ac2a

Please sign in to comment.