-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 1.41 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
on:
push:
branches: main
paths:
- 'vignettes/**'
- 'man/**'
- 'README.**'
schedule:
# Rerun pkgdown after the (expected) time package is rebuilt on the daily.
# Let's give it 30 mins
- cron: '30 12 * * *'
workflow_dispatch:
inputs:
dummy:
description: 'A dummy variable to enable manual workflow execution'
required: false
default: 'gitty up'
name: pkgdown
jobs:
pkgdown:
runs-on: ubuntu-latest
container: facilebio/facilebio
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GIT_AUTHOR_NAME: Steve Lianoglou
GIT_AUTHOR_EMAIL: slianoglou@gmail.com
GIT_COMMITTER_NAME: Steve Lianoglou
GIT_COMMITTER_EMAIL: slianoglou@gmail.com
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup R
uses: r-lib/actions/setup-r@v1
with:
install-r: false
# pandoc is already installed in the docker container
# - uses: r-lib/actions/setup-pandoc@master
- name: Install dependencies
run: remotes::install_deps(dependencies = TRUE, upgrade = FALSE)
shell: Rscript {0}
- name: Install package
run: R CMD INSTALL .
- name: Deploy package
run: pkgdown::deploy_to_branch(new_process = FALSE)
shell: Rscript {0}