Skip to content

Commit d9047c1

Browse files
committed
Updated workflow from jupyterbook docs
The old one used a deprecated version of the upload-artifact action, which is maybe a dependency of upload-pages-artifact which is the one this workflow actually uses?
1 parent 790e236 commit d9047c1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/deploy-book.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,24 @@ jobs:
2121
pages: write
2222
id-token: write
2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525

2626
# Install dependencies
2727
- name: Set up Python 3.11
28-
uses: actions/setup-python@v4
28+
uses: actions/setup-python@v5
2929
with:
30-
python-version: 3.11
30+
python-version: '3.11'
31+
cache: pip # Implicitly uses requirements.txt for cache key
3132

3233
- name: Install dependencies
33-
run: |
34-
pip install -r requirements.txt
34+
run: pip install -r requirements.txt
3535

3636
# (optional) Cache your executed notebooks between runs
3737
# if you have config:
3838
# execute:
3939
# execute_notebooks: cache
4040
- name: cache executed notebooks
41-
uses: actions/cache@v3
41+
uses: actions/cache@v4
4242
with:
4343
path: _build/.jupyter_cache
4444
key: jupyter-book-cache-${{ hashFiles('requirements.txt') }}
@@ -50,11 +50,11 @@ jobs:
5050
5151
# Upload the book's HTML as an artifact
5252
- name: Upload artifact
53-
uses: actions/upload-pages-artifact@v2
53+
uses: actions/upload-pages-artifact@v3
5454
with:
5555
path: "_build/html"
5656

5757
# Deploy the book's HTML to GitHub Pages
5858
- name: Deploy to GitHub Pages
5959
id: deployment
60-
uses: actions/deploy-pages@v2
60+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)