Skip to content

Commit 4f74024

Browse files
committed
Adjust GH Pages config
1 parent 9616334 commit 4f74024

1 file changed

Lines changed: 18 additions & 7 deletions

File tree

.github/workflows/main.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,35 @@ on:
88
jobs:
99
deploy:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
pages: write
13+
id-token: write
1114

1215
steps:
1316
- name: Checkout repository
1417
uses: actions/checkout@v4
1518

16-
- name: Set up Python
17-
uses: actions/setup-python@v4
19+
- name: Set up Python 3.11
20+
uses: actions/setup-python@v5
1821
with:
19-
python-version: '3.9'
22+
python-version: '3.11'
23+
cache: pip
2024

2125
- name: Install dependencies
2226
run: |
2327
pip install -U pip
24-
pip install jupyter-book ghp-import
28+
pip install -r requirements.txt
2529
2630
- name: Build the Jupyter Book
27-
run: jupyter-book build --builder dirhtml TeSS_docs
31+
run: jupyter-book build --builder dirhtml TeSS_docs/
32+
33+
- name: Upload artifact
34+
uses: actions/upload-artifact@v3
35+
with:
36+
path: "_build/dirhtml"
2837

2938
- name: Deploy to GitHub Pages
30-
run: |
31-
ghp-import -n -p -f TeSS_docs/_build/dirhtml
39+
id: deployment
40+
uses: actions/deploy-pages@v4
41+
#run: |
42+
# ghp-import -n -p -f TeSS_docs/_build/dirhtml

0 commit comments

Comments
 (0)