Skip to content

Commit bfe3ca6

Browse files
authored
Merge pull request #60 from CU-ESIIL/codex/fix-github-pages-automatic-deployment
Ensure Pages workflow deploys within a single job
2 parents 67b3233 + 362e214 commit bfe3ca6

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/pages.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,33 +16,34 @@ concurrency:
1616
cancel-in-progress: true
1717

1818
jobs:
19-
build:
19+
build-deploy:
2020
runs-on: ubuntu-latest
21+
environment:
22+
name: github-pages
23+
url: ${{ steps.deployment.outputs.page_url }}
2124
steps:
2225
- name: Checkout
2326
uses: actions/checkout@v4
27+
2428
- name: Set up Python
2529
uses: actions/setup-python@v5
2630
with:
2731
python-version: "3.x"
32+
2833
- name: Install dependencies
2934
run: pip install -r requirements.txt
35+
3036
- name: Configure Pages
3137
uses: actions/configure-pages@v5
38+
3239
- name: Build site
3340
run: mkdocs build --strict --site-dir dist
41+
3442
- name: Upload artifact
3543
uses: actions/upload-pages-artifact@v3
3644
with:
3745
path: dist
3846

39-
deploy:
40-
runs-on: ubuntu-latest
41-
needs: build
42-
environment:
43-
name: github-pages
44-
url: ${{ steps.deployment.outputs.page_url }}
45-
steps:
4647
- name: Deploy to GitHub Pages
4748
id: deployment
4849
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)