Skip to content

Commit

Permalink
Tried splitting pages deploy into two jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahGale authored Jan 10, 2024
1 parent 629da91 commit 7133f25
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,9 @@ jobs:
- run: black --check montepy/ tests/


deploy-pages:
build-pages:
needs: [build, test, doc-test, format-test]

permissions:
contents: read
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand All @@ -118,6 +113,19 @@ jobs:
with:
name: deploy-pages
path: doc/build/html/

deploy-pages:
permissions:
contents: read
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build-pages
runs-on: ubuntu-latest
steps:
- uses: actions/deploy-pages@v3

deploy-pypi:
Expand Down

0 comments on commit 7133f25

Please sign in to comment.