-
Notifications
You must be signed in to change notification settings - Fork 54
46 lines (39 loc) · 1.09 KB
/
docs.yml
File metadata and controls
46 lines (39 loc) · 1.09 KB
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
name: Documentation
on:
push:
branches: [ master ]
release:
types: [ published ]
workflow_dispatch:
workflow_run:
workflows: ["CI"]
types: [completed]
branches: [master]
jobs:
docs:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success' || github.event_name != 'workflow_run'
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: 'release'
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website
- name: Configure git
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Actions"
- name: Build and deploy pkgdown site
run: pkgdown::deploy_to_branch(new_process = FALSE)
shell: Rscript {0}