-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (52 loc) · 1.63 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
# READ-ONLY FILE
#
# Original file resides in r-hyperspec/pkg-skelton.
# DO NOT EDIT in any other repo as these changes will be overwritten.
# Edit at r-hyperspec/pkg-skelton, then push there and
# this file will be deployed to the other repos.
#
on:
push:
branches:
- release
- main
- master
- develop
# - auto-update
- auto-update-test
tags: ['*']
name: Website (pkgdown)
jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
r-version: 'release'
- uses: r-lib/actions/setup-r-dependencies@v2
with:
working-directory: ./pkg/unmixR
extra-packages: any::pkgdown, local::., any::devtools
needs: website
- name: Roxygenize
working-directory: ./pkg/unmixR
# The vignettes will be built in step "Deploy package"
run: |
devtools::document(roclets = c('rd', 'collate', 'namespace'))
shell: Rscript {0}
- name: Install package
run: R CMD INSTALL ./pkg/unmixR
- name: Deploy package
working-directory: ./pkg/unmixR
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'