File tree Expand file tree Collapse file tree 1 file changed +13
-29
lines changed Expand file tree Collapse file tree 1 file changed +13
-29
lines changed Original file line number Diff line number Diff line change 1
1
on :
2
+ workflow_dispatch :
2
3
push :
3
4
branches : main
4
- pull_request :
5
- branches : main
6
- # to be able to trigger a manual build
7
- workflow_dispatch :
8
5
9
- name : Render and deploy Book
6
+ name : Quarto Publish
10
7
11
8
jobs :
12
9
build-deploy :
13
10
runs-on : ubuntu-latest
11
+ permissions :
12
+ contents : write
14
13
steps :
15
- - uses : actions/checkout@v2
16
-
17
- - name : Install Quarto
18
- uses : quarto-dev/quarto-actions/install-quarto@v1
19
- with :
20
- # To install LaTeX to build PDF book
21
- tinytex : true
22
- # uncomment below and fill to pin a version
23
- # version: 0.9.105
24
-
25
- # Install any computing dependency you may need, usually either python and Jupyter or R
26
- # More specific examples will be shared on quarto-dev/quarto-actions project
14
+ - name : Check out repository
15
+ uses : actions/checkout@v4
27
16
28
- - name : Render book to all format
29
- # Add any command line argument needed
30
- run : |
31
- quarto render
17
+ - name : Set up Quarto
18
+ uses : quarto-dev/quarto-actions/setup@v2
32
19
33
- - name : Deploy 🚀
34
- # only deploy when push to main
35
- if : github.event_name != 'pull_request'
36
- uses : JamesIves/github-pages-deploy-action@v4
20
+ - name : Render and Publish
21
+ uses : quarto-dev/quarto-actions/publish@v2
37
22
with :
38
- # The branch the action should deploy to.
39
- branch : gh-pages
40
- # The folder the action should deploy. Adapt if you changed in Quarto config
41
- folder : docs
23
+ target : gh-pages
24
+ env :
25
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments