File tree Expand file tree Collapse file tree 2 files changed +39
-78
lines changed Expand file tree Collapse file tree 2 files changed +39
-78
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Rebuild and deploy book to gh-pages branch
2
+ on :
3
+ push :
4
+ branches :
5
+ - production
6
+ paths :
7
+ - ' index.Rmd'
8
+ - ' _bookdown.yml'
9
+ - ' _output.yml'
10
+ - ' source/*.Rmd'
11
+ - ' source/*.bib'
12
+ - ' source/*.css'
13
+ - ' data/**'
14
+ - ' img/**'
15
+ - ' build_html.sh'
16
+
17
+ jobs :
18
+ deploy-book :
19
+ runs-on : ubuntu-latest
20
+ permissions :
21
+ contents : write
22
+ packages : write
23
+
24
+ steps :
25
+ - name : checkout gh-pages
26
+ uses : actions/checkout@v2
27
+ with :
28
+ ref : ' gh-pages'
29
+
30
+ - name : remove all pull and diff folders
31
+ run : |
32
+ rm -rf pull* diff*
33
+
34
+ - name : copy dev website to root directory
35
+ run : |
36
+ yes | cp -rf dev/* .
37
+
38
+ - name : push the result to gh-pages
39
+ uses : stefanzweifel/git-auto-commit-action@v5
You can’t perform that action at this time.
0 commit comments