Update render-publish.yml
This commit is contained in:
parent
b760d9f494
commit
ef471e5ad4
1 changed files with 24 additions and 28 deletions
52
.github/workflows/render-publish.yml
vendored
52
.github/workflows/render-publish.yml
vendored
|
@ -71,40 +71,36 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup R
|
|
||||||
uses: r-lib/actions/setup-r@v2
|
|
||||||
- name: Setup pandoc
|
|
||||||
uses: r-lib/actions/setup-pandoc@v2
|
|
||||||
- name: Get R version
|
|
||||||
id: get-r-version
|
|
||||||
run: echo "version=$(Rscript -e 'cat(as.character(getRversion()))')" >> $GITHUB_OUTPUT
|
|
||||||
shell: bash
|
|
||||||
- name: Cache R packages
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: ${{ env.R_LIBS_USER }}
|
|
||||||
key: ${{ runner.os }}-${{ steps.get-r-version.outputs.version }}-3-
|
|
||||||
- name: Install pak
|
|
||||||
run: |
|
|
||||||
install.packages("pak", repos = "https://r-lib.github.io/p/pak/dev/")
|
|
||||||
shell: Rscript {0}
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
pak::local_install_dev_deps()
|
|
||||||
shell: Rscript {0}
|
|
||||||
# - name: Install knitr 1.42 to avoid bug in 1.43
|
|
||||||
# run: |
|
|
||||||
# devtools::install_version("knitr", version = "1.42")
|
|
||||||
# shell: Rscript {0}
|
|
||||||
- name: Set up Quarto
|
- name: Set up Quarto
|
||||||
uses: quarto-dev/quarto-actions/setup@v2
|
uses: quarto-dev/quarto-actions/setup@v2
|
||||||
with:
|
with:
|
||||||
tinytex: false
|
# To install LaTeX to build PDF book
|
||||||
|
tinytex: false
|
||||||
|
# uncomment below and fill to pin a version
|
||||||
|
# version: SPECIFIC-QUARTO-VERSION-HERE
|
||||||
|
|
||||||
|
# add software dependencies here
|
||||||
|
|
||||||
|
# To publish to Netlify, RStudio Connect, or GitHub Pages, uncomment
|
||||||
|
# the appropriate block below
|
||||||
|
|
||||||
|
# - name: Publish to Netlify (and render)
|
||||||
|
# uses: quarto-dev/quarto-actions/publish@v2
|
||||||
|
# with:
|
||||||
|
# target: netlify
|
||||||
|
# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
|
|
||||||
|
# - name: Publish to RStudio Connect (and render)
|
||||||
|
# uses: quarto-dev/quarto-actions/publish@v2
|
||||||
|
# with:
|
||||||
|
# target: connect
|
||||||
|
# CONNECT_SERVER: enter-the-server-url-here
|
||||||
|
# CONNECT_API_KEY: ${{ secrets.CONNECT_API_KEY }}
|
||||||
|
|
||||||
- name: Publish to GitHub Pages (and render)
|
- name: Publish to GitHub Pages (and render)
|
||||||
uses: quarto-dev/quarto-actions/publish@v2
|
uses: quarto-dev/quarto-actions/publish@v2
|
||||||
with:
|
with:
|
||||||
target: gh-pages
|
target: gh-pages
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions
|
||||||
|
|
Loading…
Add table
Reference in a new issue