-
Notifications
You must be signed in to change notification settings - Fork 64
76 lines (62 loc) · 2.06 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
on:
push:
branches: master
name: pkgdown
jobs:
pkgdown:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: 4.3.1
- uses: r-lib/actions/setup-pandoc@v2
- name: Install dependencies
run: |
sudo apt-get install --yes libcurl4-openssl-dev libharfbuzz-dev libfribidi-dev
- name: Install XQuartz
if: runner.os == 'macOS'
run: brew cask install xquartz
- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
shell: Rscript {0}
- name: Cache R packages
uses: actions/cache@v1
with:
path: ${{ env.R_LIBS_USER }}
key: ubuntu-r-4.0-4-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ubuntu-r-4.0-4-
- name: Install dependencies
run: |
install.packages("BiocManager")
BiocManager::install("IRanges")
BiocManager::install("ggtree")
install.packages("remotes")
remotes::install_deps(dependencies = TRUE)
install.packages('pkgdown')
install.packages('devtools')
remotes::install_dev("dplyr")
install.packages("Hmisc")
shell: Rscript {0}
- name: Install package
run: R CMD INSTALL .
- name: Session Info
run: |
library(tidyverse)
library(IRanges)
library(gggenomes)
print(sessionInfo())
shell: Rscript {0}
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
- name: Configure git user
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Deploy package
run: pkgdown::deploy_to_branch(new_process = FALSE, lazy=FALSE)
shell: Rscript {0}