diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5c582a5..561b160 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }} \ No newline at end of file + path: slides/index.qmd \ No newline at end of file