File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Build static book contents
1+ name : Build static book contents and deploy
22
33on :
44 workflow_call :
55 inputs :
66 is_index :
77 type : boolean
88
9+ concurrency :
10+ group : " pages"
11+ cancel-in-progress : false
12+
913jobs :
14+
1015 build :
1116 env :
1217 book_folder : ${{ github.event.repository.name }}${{ case(inputs.is_index, '/index', '') }}
3338 with :
3439 path : public_html
3540
41+ deploy :
42+ needs : build
43+ permissions :
44+ contents : read
45+ pages : write
46+ id-token : write
47+ environment :
48+ name : github-pages
49+ url : ${{ steps.deployment.outputs.page_url }}
50+ runs-on : ubuntu-slim
51+ steps :
52+ - name : Deploy to GitHub Pages
53+ id : deployment
54+ uses : actions/deploy-pages@v5
55+
Original file line number Diff line number Diff line change 2222 with :
2323 is_index : true
2424
25- deploy_index :
26- needs : build_index
27- concurrency :
28- group : " pages"
29- cancel-in-progress : false
30- environment :
31- name : github-pages
32- url : ${{ steps.deployment.outputs.page_url }}
33- runs-on : ubuntu-slim
34- steps :
35- - name : Deploy to GitHub Pages
36- id : deployment
37- uses : actions/deploy-pages@v5
38-
3925 setup_matrix :
4026 runs-on : ubuntu-slim
4127 outputs :
6955 echo 'EOF'
7056 } >> "$GITHUB_OUTPUT"
7157
72- start_book_deploy :
58+ start_matrix :
7359 needs : [setup_matrix, build_index]
7460 runs-on : ubuntu-slim
7561 environment : deploy
8975 name : run_id-${{ matrix.site }}
9076 path : run_id.txt
9177
92- watch_book_deploy :
93- needs : [setup_matrix, start_book_deploy ]
78+ watch_matrix :
79+ needs : [setup_matrix, start_matrix ]
9480 runs-on : ubuntu-slim
9581 environment : deploy_watch
9682 env :
You can’t perform that action at this time.
0 commit comments