Skip to content

Commit e571653

Browse files
committed
add publish github action
1 parent e2948a9 commit e571653

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/publish.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
workflow_dispatch:
3+
push:
4+
branches: main
5+
6+
name: Quarto Publish
7+
8+
jobs:
9+
build-deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out repository
13+
uses: actions/checkout@v2
14+
15+
- name: Set up Quarto
16+
uses: quarto-dev/quarto-actions/setup@v2
17+
18+
- name: Install R
19+
uses: r-lib/actions/setup-r@v2
20+
with:
21+
r-version: '4.2.0'
22+
23+
- name: Install R Dependencies
24+
uses: r-lib/actions/setup-renv@v2
25+
with:
26+
cache-version: 1
27+
28+
- name: Render and Publish
29+
uses: quarto-dev/quarto-actions/publish@v2
30+
with:
31+
target: netlify
32+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

_publish.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- source: project
2+
netlify:
3+
- id: 650899af-370a-4a14-8a8b-09082a5ef436
4+
url: 'https://profound-centaur-08c069.netlify.app'

0 commit comments

Comments
 (0)