-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.01 KB
/
build.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
name: build
on:
push:
branches:
- main
paths:
- .github/workflows/build.yml
- "_quarto.yml"
- "*.qmd"
- "*.css"
env:
actor: "41898282+github-actions[bot]"
token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ github.repository }}
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
ref: gh-pages
- name: git config & merge
run: |
git config --local user.email "${actor}@users.noreply.github.com"
git config --local user.name "$actor"
git merge origin/main --no-edit
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-renv@v2
- uses: quarto-dev/quarto-actions/setup@v2
- uses: quarto-dev/quarto-actions/render@v2
- name: git commit
run: |
git add -f docs
git commit -m "📄 Render quarto project"
git push "https://${actor}:${token}@github.com/${repo}.git"