Skip to content

Commit f2614af

Browse files
committed
create pkgdown action
KELLY MADE ME DO THIS
1 parent 1fc888a commit f2614af

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

.github/workflows/pkgdown.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master, GalaxyCLI]
6+
pull_request:
7+
branches: [main, master]
8+
release:
9+
types: [published]
10+
workflow_dispatch:
11+
12+
name: pkgdown
13+
14+
permissions:
15+
contents: write
16+
pages: write
17+
18+
jobs:
19+
pkgdown:
20+
runs-on: ubuntu-latest
21+
# Only restrict concurrency for non-PR jobs
22+
concurrency:
23+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
24+
env:
25+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
26+
steps:
27+
- uses: actions/checkout@v3
28+
29+
- uses: r-lib/actions/setup-pandoc@v2
30+
31+
- uses: r-lib/actions/setup-r@v2
32+
with:
33+
use-public-rspm: true
34+
r-version: 4.3
35+
36+
- uses: r-lib/actions/setup-r-dependencies@v2
37+
with:
38+
extra-packages: any::pkgdown, local::.
39+
needs: website
40+
41+
- name: Build site
42+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
43+
shell: Rscript {0}
44+
45+
- name: Deploy to GitHub pages 🚀
46+
if: github.event_name != 'pull_request'
47+
uses: JamesIves/github-pages-deploy-action@v4.4.1
48+
with:
49+
clean: false
50+
branch: gh-pages
51+
folder: docs

0 commit comments

Comments
 (0)