-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (40 loc) · 1.1 KB
/
pkgdown.yaml
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
47
48
on:
push:
branches:
- main
- master
- devel
pull_request:
branches:
- main
- master
- devel
name: pkgdown
jobs:
pkgdown:
runs-on: ubuntu-latest
container: bioconductor/bioconductor_docker:RELEASE_3_18
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install apt dependencies
run: |
sudo apt-get update && sudo apt-get install -y rsync
- name: Install R dependencies
run: |
install.packages("pkgdown", dependencies = TRUE)
remotes::install_deps(dependencies = TRUE, repos = BiocManager::repositories())
shell: Rscript {0}
- name: Install package
run: R CMD INSTALL .
- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}
- name: Deploy to GitHub pages 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
clean: false
folder: docs