generated from hds-sandbox/course-template
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 1.43 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
on:
push:
branches: webpage-quarto
name: Quarto Publish
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Install libs on Linux
if: runner.os == 'Linux'
run: sudo apt-get update -y && sudo apt-get install -y libfontconfig-dev libcurl4-openssl-dev libharfbuzz-dev libfribidi-dev
#- name: Download Quarto on Linux
# if: runner.os == 'Linux'
# run: wget https://github.com/quarto-dev/quarto-cli/releases/download/v1.3.450/quarto-1.3.450-linux-amd64.tar.gz -P /opt/
#- name: Unzip Quarto on Linux
# if: runner.os == 'Linux'
# run: tar -xvf /opt/quarto-1.3.450-linux-amd64.tar.gz -C /opt/
- name: Check out repository
uses: actions/checkout@v4
# - name: Unzip Quarto on Linux
# if: runner.os == 'Linux'
# run: /opt/quarto-1.3.450/bin/quarto install tinytex && /opt/quarto-1.3.450/bin/quarto publish gh-pages
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: '1.3.450'
tinytex: true
# - name: Install R
# uses: r-lib/actions/setup-r@v2
# - name: Install R Dependencies
# uses: r-lib/actions/setup-renv@v2
# - name: Install pandoc
# uses: pandoc/actions/setup@{main}
- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages