Skip to content

Commit 6536455

Browse files
ci: add pkgdown workflow for docs-gh-actions
1 parent 32cb68b commit 6536455

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/pkgdown.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: pkgdown
2+
3+
on:
4+
push:
5+
branches: [docs-gh-actions]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
pkgdown:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: r-lib/actions/setup-r@v2
17+
- uses: r-lib/actions/setup-pandoc@v2
18+
- uses: r-lib/actions/setup-r-dependencies@v2
19+
with:
20+
extra-packages: any::pkgdown, local::.
21+
needs: website
22+
- name: Build and deploy site
23+
run: pkgdown::deploy_to_branch(new_process = FALSE)
24+
shell: Rscript {0}

0 commit comments

Comments
 (0)