-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try updating workflow to work with babelquarto
- Loading branch information
Showing
1 changed file
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,14 +12,43 @@ jobs: | |
contents: write | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Quarto | ||
uses: quarto-dev/quarto-actions/setup@v2 | ||
with: | ||
version: pre-release | ||
|
||
# install libcurl, needed for curl R package | ||
# libfribidi-dev libharfbuzz-dev for textshaping | ||
# libxslt1-dev for xslt | ||
- name: Install R package deps | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libcurl4-openssl-dev libfribidi-dev libharfbuzz-dev libxslt1-dev | ||
- name: Render and Publish | ||
uses: quarto-dev/quarto-actions/publish@v2 | ||
- name: Install R | ||
uses: r-lib/actions/setup-r@v2 | ||
with: | ||
target: gh-pages | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
r-version: '4.3.2' | ||
|
||
- name: Install R Dependencies | ||
uses: r-lib/actions/setup-renv@v2 | ||
with: | ||
cache-version: 1 | ||
|
||
- name: Render book | ||
run: Rscript -e 'babelquarto::render_website()' | ||
|
||
- name: git config | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "gh-pages committer" | ||
- name: Commit results | ||
run: | | ||
cd _site | ||
git init | ||
git add . | ||
git commit -m 'update website' | ||
git push https://${{github.actor}}:${{secrets.GITHUB_TOKEN}}@github.com/${{github.repository}}.git HEAD:gh-pages --force |