-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (36 loc) · 1.53 KB
/
publish.yml
File metadata and controls
45 lines (36 loc) · 1.53 KB
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
on:
push:
branches:
- main
paths:
- 'Webpage/**'
workflow_dispatch:
name: Quarto Publish
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Install libcurl on Linux
if: runner.os == 'Linux'
run: sudo apt-get update -y && sudo apt-get install -y libfontconfig1-dev libcurl4-openssl-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
# If you do not need any R package for notebooks or R Markdown documents, you can skip the following two steps by removing them.
# For this template you have a lock file with some packages installed to be able to print tables in markdown and compile the R markdown page example
# you can create renv.lock for your own needs using the renv package and the renv::snapshot() function when working on developing material
- name: Install R
uses: r-lib/actions/setup-r@v2
- name: Install R Dependencies
uses: r-lib/actions/setup-renv@v2
# This part publishes the website to the gh-pages branch
# but looks specifically at Webpage folder to find the _quarto.yml file
# default would be looking at the root of the repository
- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
path: Webpage