forked from ivelasq/build-your-own-blog-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1.02 KB
/
deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Inspired from: https://github.com/seeM/blog
name: Quarto Publish
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
# Quarto actions find out more here: https://github.com/quarto-dev/quarto-actions?tab=readme-ov-file
- uses: quarto-dev/quarto-actions/setup@v2
with:
version: pre-release
- name: Install R dependencies
run: |
R -e 'install.packages(c("rmarkdown", "knitr"))'
- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}