-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
73ff3b8
commit bc1e414
Showing
1 changed file
with
31 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
on: | ||
workflow_dispatch: | ||
|
||
name: "Render via Script" | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# for accessing this repo's assets in the container | ||
- name: Check out the repo | ||
uses: actions/checkout@v3 | ||
# run the container, attaching this repo as a working directory | ||
- name: Run the build process with Docker | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: stat20/stat20-docker:latest | ||
options: -v ${{ github.workspace }}:/home/rstudio/quarto-class-website | ||
shell: bash | ||
run: | | ||
# exit if any command returns non-zero exit | ||
set -e | ||
# execute from the textbook | ||
cd /home/rstudio/quarto-class-website/ | ||
# render via script | ||
quarto run partial-render.ts | ||
# direct render | ||
# quarto render --profile partial-render | ||