Skip to content

Commit a90528e

Browse files
authored
Merge pull request #3 from febus982/split-pages-workflow
Split pages workflow
2 parents fdd5810 + 5c9f6d6 commit a90528e

9 files changed

Lines changed: 32 additions & 16 deletions

File tree

.github/workflows/github-pages.yml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ on:
66
# Allows you to run this workflow manually from the Actions tab
77
workflow_dispatch:
88

9-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
109
permissions:
1110
contents: read
12-
pages: write
13-
id-token: write
1411

1512
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
1613
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
@@ -20,7 +17,7 @@ concurrency:
2017

2118
jobs:
2219
# Single deploy job since we're just deploying
23-
deploy:
20+
build:
2421
environment:
2522
name: github-pages
2623
url: ${{ steps.deployment.outputs.page_url }}
@@ -29,9 +26,9 @@ jobs:
2926
- name: Checkout
3027
uses: actions/checkout@v3
3128
- name: Setup Pages
32-
uses: actions/configure-pages@v3
29+
uses: actions/configure-pages@v4
3330
- name: Set up Python 3.12
34-
uses: actions/setup-python@v3
31+
uses: actions/setup-python@v4
3532
with:
3633
python-version: "3.12"
3734
- name: Install dependencies
@@ -43,9 +40,28 @@ jobs:
4340
- name: Build static pages
4441
run: make docs-build
4542
- name: Upload artifact
46-
uses: actions/upload-pages-artifact@v1
43+
uses: actions/upload-pages-artifact@v2
4744
with:
4845
path: './site'
46+
47+
# Deploy job
48+
deploy:
49+
# Add a dependency to the build job
50+
needs: build
51+
52+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
53+
permissions:
54+
pages: write # to deploy to Pages
55+
id-token: write # to verify the deployment originates from an appropriate source
56+
57+
# Deploy to the github-pages environment
58+
environment:
59+
name: github-pages
60+
url: ${{ steps.deployment.outputs.page_url }}
61+
62+
# Specify runner + deployment step
63+
runs-on: ubuntu-latest
64+
steps:
4965
- name: Deploy to GitHub Pages
5066
id: deployment
51-
uses: actions/deploy-pages@v2
67+
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action

.github/workflows/python-3.10.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v3
1818
- name: Set up Python 3.10
19-
uses: actions/setup-python@v3
19+
uses: actions/setup-python@v4
2020
with:
2121
python-version: "3.10"
2222
- name: Install dependencies

.github/workflows/python-3.11.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v3
1818
- name: Set up Python 3.11
19-
uses: actions/setup-python@v3
19+
uses: actions/setup-python@v4
2020
with:
2121
python-version: "3.11"
2222
- name: Install dependencies

.github/workflows/python-3.12.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v3
1818
- name: Set up Python 3.12
19-
uses: actions/setup-python@v3
19+
uses: actions/setup-python@v4
2020
with:
2121
python-version: "3.12"
2222
- name: Install dependencies

.github/workflows/python-3.8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v3
1818
- name: Set up Python 3.8
19-
uses: actions/setup-python@v3
19+
uses: actions/setup-python@v4
2020
with:
2121
python-version: "3.8"
2222
- name: Install dependencies

.github/workflows/python-3.9.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v3
1818
- name: Set up Python 3.9
19-
uses: actions/setup-python@v3
19+
uses: actions/setup-python@v4
2020
with:
2121
python-version: "3.9"
2222
- name: Install dependencies

.github/workflows/python-code-style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v3
1818
- name: Set up Python 3.12
19-
uses: actions/setup-python@v3
19+
uses: actions/setup-python@v4
2020
with:
2121
python-version: "3.12"
2222
- name: Install dependencies

.github/workflows/python-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v3
1818
- name: Set up Python 3.12
19-
uses: actions/setup-python@v3
19+
uses: actions/setup-python@v4
2020
with:
2121
python-version: "3.12"
2222
- name: Install dependencies

.github/workflows/python-quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v3
1818
- name: Set up Python 3.12
19-
uses: actions/setup-python@v3
19+
uses: actions/setup-python@v4
2020
with:
2121
python-version: "3.12"
2222
- name: Install dependencies

0 commit comments

Comments
 (0)