generated from nfidd/nfidd
-
Notifications
You must be signed in to change notification settings - Fork 3
66 lines (57 loc) · 1.65 KB
/
deploy.yaml
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
57
58
59
60
61
62
63
64
65
66
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *' # Run at 00:00 on the 1st of every month
push:
branches: [main]
pull_request:
merge_group:
name: deploy
jobs:
deploy:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
LANG: "en_US.UTF-8"
LC_ALL: "en_US.UTF-8"
steps:
- uses: actions/checkout@v4
- uses: quarto-dev/quarto-actions/setup@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
extra-repositories:
https://stan-dev.r-universe.dev,
https://epiforecasts.r-universe.dev
- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages:
any::gh,
any::knitr,
any::rmarkdown,
nfidd
- name: Install cmdstan
uses: epinowcast/actions/install-cmdstan@v1
with:
cmdstan-version: 'latest'
num-cores: 2
- name: Render site
run: quarto render
- name: Upload website
uses: actions/upload-artifact@v4
if: github.event_name == 'pull_request'
with:
name: site
retention-days: 5
path: _site
- name: Deploy to GitHub pages 🚀
if: github.ref_name == 'main'
uses: JamesIves/github-pages-deploy-action@v4.6.8
with:
branch: gh-pages
folder: _site
single-commit: true
clean: true