File tree Expand file tree Collapse file tree 1 file changed +35
-6
lines changed Expand file tree Collapse file tree 1 file changed +35
-6
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,43 @@ jobs:
1212 contents : write
1313 steps :
1414 - name : Check out repository
15- uses : actions/checkout@v4
15+ uses : actions/checkout@v3
1616
1717 - name : Set up Quarto
1818 uses : quarto-dev/quarto-actions/setup@v2
19+ with :
20+ version : pre-release
21+
22+ # install libcurl, needed for curl R package
23+ # libfribidi-dev libharfbuzz-dev for textshaping
24+ # libxslt1-dev for xslt
25+ - name : Install R package deps
26+ run : |
27+ sudo apt-get update
28+ sudo apt-get install libcurl4-openssl-dev libfribidi-dev libharfbuzz-dev libxslt1-dev
1929
20- - name : Render and Publish
21- uses : quarto-dev/quarto- actions/publish @v2
30+ - name : Install R
31+ uses : r-lib/ actions/setup-r @v2
2232 with :
23- target : gh-pages
24- env :
25- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+ r-version : ' 4.3.2'
34+
35+ - name : Install R Dependencies
36+ uses : r-lib/actions/setup-renv@v2
37+ with :
38+ cache-version : 1
39+
40+ - name : Render book
41+ run : Rscript -e 'babelquarto::render_website()'
42+
43+ - name : git config
44+ run : |
45+ git config --global user.email "[email protected] " 46+ git config --global user.name "gh-pages committer"
47+
48+ - name : Commit results
49+ run : |
50+ cd _site
51+ git init
52+ git add .
53+ git commit -m 'update website'
54+ git push https://${{github.actor}}:${{secrets.GITHUB_TOKEN}}@github.com/${{github.repository}}.git HEAD:gh-pages --force
You can’t perform that action at this time.
0 commit comments