Skip to content

GH-Pages and adding examples #5

GH-Pages and adding examples

GH-Pages and adding examples #5

Workflow file for this run

on:
push:
branches: main
pull_request:
branches: main
name: Quarto Render and Deploy
jobs:
build-deploy:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-renv@v2
# - uses: r-lib/actions/setup-r-dependencies@v2
- name: Render book to all format
run: |
quarto render
- name: deploy to GH pages
id: gh-pages-deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs