File tree Expand file tree Collapse file tree 2 files changed +53
-37
lines changed
Expand file tree Collapse file tree 2 files changed +53
-37
lines changed Original file line number Diff line number Diff line change 1- name : Github Pages
1+ name : Build documentation
22
33on :
44 push :
55 branches :
66 - " **"
7-
8- # Allows you to run this workflow manually from the Actions tab
9- workflow_dispatch :
10-
11- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12- permissions :
13- contents : read
14- pages : write
15- id-token : write
16-
17- # Allow one concurrent deployment
18- concurrency :
19- group : " pages"
20- cancel-in-progress : true
7+ workflow_call :
218
229jobs :
2310 build :
5643 run : jupyter book build .
5744
5845 - name : Upload artifact
59- uses : actions/upload-pages- artifact@v3
46+ uses : actions/upload-artifact@v4
6047 with :
6148 path : ${{ env.PUBLISH_DIR }}
62-
63- # Single deploy job since we're just deploying
64- deploy :
65- if : github.ref == 'refs/heads/main'
66- needs : build
67- environment :
68- name : github-pages
69- url : ${{ steps.deployment.outputs.page_url }}
70-
71- runs-on : ubuntu-latest
72-
73- steps :
74- - name : Checkout
75- uses : actions/checkout@v4
76-
77- - name : Setup Pages
78- uses : actions/configure-pages@v3
79-
80- - name : Deploy to GitHub Pages
81- id : deployment
82- uses : actions/deploy-pages@v4
49+ name : documentation
Original file line number Diff line number Diff line change 1+ name : Deploy pages
2+ on :
3+ push :
4+ branches :
5+ - " main"
6+
7+ # Allows you to run this workflow manually from the Actions tab
8+ workflow_dispatch :
9+
10+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+
16+ # Allow one concurrent deployment
17+ concurrency :
18+ group : " pages"
19+ cancel-in-progress : true
20+
21+ jobs :
22+ build-docs :
23+ uses : ./.github/workflows/build_docs.yml
24+
25+ build :
26+ runs-on : ubuntu-22.04
27+ environment :
28+ name : github-pages
29+ url : ${{ steps.deployment.outputs.page_url }}
30+
31+ steps :
32+ - name : Download docs artifact
33+ # docs artifact is uploaded by build-docs job
34+ uses : actions/download-artifact@v4
35+ with :
36+ name : documentation
37+ path : " ./public"
38+
39+ - name : Upload artifact
40+ uses : actions/upload-pages-artifact@v3
41+ with :
42+ path : " ./public"
43+
44+ - name : Setup Pages
45+ uses : actions/configure-pages@v3
46+
47+ - name : Deploy to GitHub Pages
48+ id : deployment
49+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments