Skip to content

Commit 293f321

Browse files
committed
added publish github action yaml file
1 parent b772f8f commit 293f321

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
on:
2+
workflow_dispatch:
3+
push:
4+
branches: main
5+
# schedule:
6+
# - cron: '00 02 * * *'
7+
8+
name: Quarto Publish
9+
10+
jobs:
11+
build-deploy:
12+
runs-on: windows-latest
13+
permissions:
14+
contents: write
15+
steps:
16+
- name: Check out repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Quarto
20+
uses: quarto-dev/quarto-actions/setup@v2
21+
env:
22+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
with:
24+
tinytex: true
25+
version: 1.6.33
26+
27+
- name: Install R
28+
uses: r-lib/actions/setup-r@v2
29+
with:
30+
r-version: '4.4.2'
31+
32+
- name: Install R Dependencies
33+
uses: r-lib/actions/setup-renv@v2
34+
with:
35+
cache-version: 1
36+
37+
- name: Render and Publish
38+
uses: quarto-dev/quarto-actions/publish@v2
39+
with:
40+
target: gh-pages
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)