From 7133f25ea31052150fe527b090b039c29c95ed71 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 12:36:20 -0600 Subject: [PATCH] Tried splitting pages deploy into two jobs --- .github/workflows/main.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 19a63d9c..f85c4ce2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }} @@ -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: