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- # Simple workflow for deploying static content to GitHub Pages
2- name : Deploy static content to Pages
1+ name : Publish the book to Pages
32
43on :
5- # Runs on pushes targeting the default branch
64 push :
75 branches : ["main"]
8-
9- # Allows you to run this workflow manually from the Actions tab
6+
107 workflow_dispatch :
118
12- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13- permissions :
14- contents : read
15- pages : write
16- id-token : write
17-
18- # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19- # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20- concurrency :
21- group : " pages"
22- cancel-in-progress : false
23-
249jobs :
25- build_book :
26- uses : originlab/originlab.github.io/.github/workflows/build_book.yml@main
27- deploy :
28- needs : build_book
29- environment :
30- name : github-pages
31- url : ${{ steps.deployment.outputs.page_url }}
32- runs-on : ubuntu-latest
33- steps :
34- - name : Download book artifact
35- uses : actions/download-artifact@v8
36- with :
37- name : book
38- path : _site
39- - name : Setup Pages
40- uses : actions/configure-pages@v6
41- - name : Upload pages artifact
42- uses : actions/upload-pages-artifact@v5
43- - name : Deploy to GitHub Pages
44- id : deployment
45- uses : actions/deploy-pages@v5
10+ publish_book :
11+ uses : originlab/originlab.github.io/.github/workflows/publish_book.yml@main
You can’t perform that action at this time.
0 commit comments