Skip to content

Commit ed2b5cb

Browse files
author
Peter Braun
committed
pages publish split into two jobs
1 parent 8c30d93 commit ed2b5cb

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

.github/workflows/code.yaml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,9 @@ jobs:
5454
run: |
5555
uv run pytest tests/ -v
5656
57-
publish-pages:
57+
build-pages:
5858
permissions:
59-
contents: read
60-
pages: write
59+
contents: write
6160
id-token: write
6261
runs-on: ubuntu-latest
6362
#if: ${{startsWith(github.ref, 'refs/tags/')}} # only publish to PyPI on tag pushes
@@ -89,11 +88,33 @@ jobs:
8988
shell: bash -l {0}
9089
run: uv run make -C docs/ html
9190

91+
- name: Upload
92+
uses: actions/upload-pages-artifact@v3
93+
with:
94+
path: ./docs/build/html
95+
9296
- name: Deploy to GitHub Pages
9397
id: deployment
9498
uses: actions/deploy-pages@v4
9599

96100

101+
# Deployment job
102+
deploy-pages:
103+
permissions:
104+
contents: read
105+
pages: write
106+
id-token: write
107+
environment:
108+
name: github-pages
109+
url: ${{ steps.deployment.outputs.page_url }}
110+
runs-on: ubuntu-latest
111+
needs: build-pages
112+
steps:
113+
- name: Deploy to GitHub Pages
114+
id: deployment
115+
uses: actions/deploy-pages@v4
116+
117+
97118
build:
98119
name: Build distribution 📦
99120
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)