git add gh-pages/ #41
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
on: | |
workflow_dispatch: | |
push: | |
branches: main | |
name: Quarto Publish | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up Quarto | |
uses: quarto-dev/quarto-actions/setup@v2 | |
with: | |
tinytex: true | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: '4.3.1' # The R version to download (if necessary) and use. | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
packages: | |
any::knitr | |
any::rmarkdown | |
any::downlit | |
any::xml2 | |
- name: Render Quarto Project | |
uses: quarto-dev/quarto-actions/render@v2 | |
with: | |
path: QuartoBook | |
- name: Debug | |
run: | | |
ls -R | |
find . -type f -name "*QuartoBook.pdf*" -exec dirname "{}" \; |sort -u | |
pwd | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: book-depoly # The branch the action should deploy to. | |
folder: QuartoBook/_book # The folder the action should deploy. | |