-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (26 loc) · 864 Bytes
/
publish.yml
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
35
on:
workflow_dispatch:
push:
branches: main
name: Quarto Render and Deploy to Netlify
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Render English
run: quarto render ${{ inputs.path }} --profile english
- name: Render French
run: quarto render ${{ inputs.path }} --profile french
# UNCOMMENT THESE LINES TO DO A DEPLOYMENT TO NETLIFY
# Require secrets added first
#- name: Publish
# uses: netlify/actions/cli@master
# with:
# args: deploy --dir=_site
# env:
# NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}