File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,26 +11,27 @@ jobs:
1111 build-and-deploy-book :
1212 runs-on : ubuntu-latest
1313 steps :
14- - uses : actions/checkout@v2
14+ - uses : actions/checkout@v6
1515
1616 # Install dependencies
1717 - name : Setup Python
18- uses : actions/setup-python@v4
18+ uses : actions/setup-python@v6
1919 with :
20- python-version : ' 3.11 '
21- cache : ' pip' # caching pip dependencies
20+ python-version : ' 3.13 '
21+ cache : pip
2222
2323 - name : Install environment with pip
2424 run : pip install -r requirements.txt
2525
26- # Build the book
27- - name : Build the book
28- run : |
29- jupyter-book build data-science-for-esm
26+ # https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-with-a-custom-github-actions-workflow
3027
31- # Deploy the book's HTML to gh-pages branch
32- - name : GitHub Pages action
33- uses : peaceiris/ actions-gh- pages@v3.6.1
28+ # Upload the book's HTML as an artifact
29+ - name : Upload artifact
30+ uses :
actions/upload- pages[email protected] 3431 with :
35- github_token : ${{ secrets.GITHUB_TOKEN }}
36- publish_dir : data-science-for-esm/_build/html
32+ path : data-science-for-esm/_build/html
33+
34+ # Deploy the book's HTML to GitHub Pages
35+ - name : Deploy to GitHub Pages
36+ id : deployment
37+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments