Skip to content

Commit fb04518

Browse files
committed
Bump versions in workflows
1 parent f3472f9 commit fb04518

3 files changed

Lines changed: 21 additions & 31 deletions

File tree

.github/workflows/build_docs.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,30 @@ on:
1010

1111
jobs:
1212
build_docs:
13-
runs-on: ubuntu-22.04
13+
runs-on: ubuntu-24.04
1414
env:
15-
PYTHON_VERSION: "3.10"
15+
PYTHON_VERSION: "3.12"
1616
PUBLISH_DIR: ./_build/html
1717

1818
steps:
1919
# checkout the repository
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2121

2222
# setup Python
2323
- name: Install Python ${{ env.PYTHON_VERSION }}
24-
uses: actions/setup-python@v4
24+
uses: actions/setup-python@v6
2525
with:
2626
python-version: ${{ env.PYTHON_VERSION }}
2727

2828
# preserve pip cache to speed up installation
2929
- name: Cache pip
30-
uses: actions/cache@v3
30+
uses: actions/cache@v5
3131
with:
3232
path: ~/.cache/pip
3333
# Look to see if there is a cache hit for the corresponding requirements file
3434
key: ${{ runner.os }}-pip-${{ hashFiles('*requirements-docs.txt') }}
3535
restore-keys: |
36-
${{ runner.os }}-pip-
36+
${{ runner.os }}-pip-${{ hashFiles('requirements-docs.txt') }}
3737
- name: Install Python dependencies
3838
run: |
3939
python3 -m pip install --upgrade pip
@@ -43,7 +43,7 @@ jobs:
4343
run: python3 -m jupyter book build .
4444

4545
- name: Upload artifact
46-
uses: actions/upload-artifact@v3
46+
uses: actions/upload-artifact@v5
4747
with:
4848
name: documentation
4949
path: ${{ env.PUBLISH_DIR }}

.github/workflows/deploy_docs.yml

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,41 @@
1-
name: Github Pages
1+
name: Publish documentation
22

33
on:
44
push:
5-
branches: [main] # Only run on push to main
5+
branches: [main]
6+
workflow_dispatch:
7+
68

7-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
89
permissions:
910
contents: read
1011
pages: write
1112
id-token: write
1213

13-
# Allow one concurrent deployment
1414
concurrency:
1515
group: "pages"
1616
cancel-in-progress: true
1717

1818
jobs:
19-
build-docs:
19+
20+
build:
2021
uses: ./.github/workflows/build_docs.yml
2122

2223
deploy:
23-
needs: [build-docs]
24-
24+
needs: build
2525
environment:
2626
name: github-pages
2727
url: ${{ steps.deployment.outputs.page_url }}
2828

2929
runs-on: ubuntu-latest
30-
steps:
31-
- name: Download docs artifact
32-
# docs artifact is uploaded by build-docs job
33-
uses: actions/download-artifact@v3
34-
with:
35-
name: documentation
36-
path: "./public"
37-
38-
- name: Upload artifact
39-
uses: actions/upload-pages-artifact@v2
40-
with:
41-
path: "./public"
4230

31+
steps:
4332
- name: Checkout
44-
uses: actions/checkout@v4
33+
uses: actions/checkout@v5
4534

4635
- name: Setup Pages
47-
uses: actions/configure-pages@v3
36+
uses: actions/configure-pages@v5
37+
4838

4939
- name: Deploy to GitHub Pages
5040
id: deployment
51-
uses: actions/deploy-pages@v2
41+
uses: actions/deploy-pages@v4

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ on:
99

1010
jobs:
1111
check-code:
12-
runs-on: ubuntu-22.04
12+
runs-on: ubuntu-24.04
1313
steps:
1414
# This action sets the current path to the root of your github repo
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1616

1717
- name: Install pre-commit
1818
run: python3 -m pip install pre-commit

0 commit comments

Comments
 (0)