Skip to content

Commit

Permalink
Fix publish quarto workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmbaazam committed Apr 20, 2024
1 parent 773fc61 commit 142c15a
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,36 @@ on:
push:
branches: main

name: Quarto Publish
name: Render and Publish

jobs:
build-deploy:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Setup R

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: 1.4.515

- name: Install R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- name: Setup pandoc
uses: r-lib/actions/setup-pandoc@v2

- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rmarkdown, local::.

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
run: |
install.packages(c("rmarkdown", "knitr"))
shell: Rscript {0}

- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
path: slides/index.qmd

0 comments on commit 142c15a

Please sign in to comment.