-
Notifications
You must be signed in to change notification settings - Fork 15
56 lines (44 loc) · 1.48 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
51
52
53
54
55
56
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "operations" branch
push:
branches: ["operations"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v4
# Setup R environment
- name: Setup R
uses: r-lib/actions/setup-r@v2
- name: Install packages
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
any::tidyverse
any::gt
- name: Install rmarkdown package
run: Rscript -e "install.packages('rmarkdown')"
- name: Check rmarkdown package version
run: Rscript -e "packageVersion('rmarkdown')"
- name: Install rmarkdown package
run: Rscript -e "install.packages('lubridate')"
- name: Check rmarkdown package version
run: Rscript -e "packageVersion('lubridate')"
# Setup Quarto
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
# Render and Publish
- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}