Commit 1c216b3 1 parent 2edad4a commit 1c216b3 Copy full SHA for 1c216b3
File tree 1 file changed +23
-20
lines changed
1 file changed +23
-20
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy Quarto Book
2
+
1
3
on :
2
- workflow_dispatch :
3
4
push :
4
- branches : main
5
-
6
- name : Quarto Publish
5
+ branches :
6
+ - main # Change to your default branch if different
7
7
8
8
jobs :
9
9
build-deploy :
10
10
runs-on : ubuntu-latest
11
- permissions :
12
- contents : write
11
+
13
12
steps :
14
- - name : Check out repository
15
- uses : actions/checkout@v4
13
+ - name : Checkout repository
14
+ uses : actions/checkout@v2
15
+
16
+ - name : Set up Quarto
17
+ uses : quarto-dev/quarto-actions/setup@v2
18
+ with :
19
+ version : latest
16
20
17
- - name : Setting up R
18
- uses : r-lib/actions/setup-r@v2
21
+ - name : Install R
22
+ uses : r-lib/actions/setup-r@v2
19
23
20
- - name : Installing and activating renv
21
- uses : r-lib/actions/setup-renv@v2
24
+ - name : Install R packages
25
+ run : |
26
+ R -e "install.packages('quarto')"
22
27
23
- - name : Set up Quarto
24
- uses : quarto-dev/quarto-actions/setup@v2
28
+ - name : Render Quarto book
29
+ run : quarto render
25
30
26
- - name : Render and Publish
27
- uses : quarto-dev/quarto-actions/publish@v2
28
- with :
29
- target : gh-pages
30
- env :
31
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
+ - name : Deploy to GitHub Pages
32
+ uses : peaceiris/actions-gh-pages@v3
33
+ with :
34
+ github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments