-
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 1014 Bytes
/
publish.yml
File metadata and controls
34 lines (29 loc) · 1014 Bytes
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
34
name: Quarto Publish
on:
push:
branches:
- main
- renovate/**
pull_request:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
- name: Set up Quarto
# yamllint disable-line rule:line-length
uses: quarto-dev/quarto-actions/setup@9e48da27e184aa238fcb49f5db75469626d43adb # v2
- name: Render ${{ github.ref_name }} branch
if: github.ref != 'refs/heads/main'
# yamllint disable-line rule:line-length
uses: quarto-dev/quarto-actions/render@9e48da27e184aa238fcb49f5db75469626d43adb # v2
- name: Publish main branch
if: github.ref == 'refs/heads/main'
# yamllint disable-line rule:line-length
uses: quarto-dev/quarto-actions/publish@9e48da27e184aa238fcb49f5db75469626d43adb # v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}