Skip to content

Commit

Permalink
ci: publish on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurData committed Sep 20, 2024
1 parent 2c51c16 commit ecce8b1
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
push:
branches: main

name: Quarto Publish

jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v4

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

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

- name: Setup R dep
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: any::knitr
any::rmarkdown

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

0 comments on commit ecce8b1

Please sign in to comment.