-
Notifications
You must be signed in to change notification settings - Fork 19
68 lines (63 loc) · 1.74 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
on:
push:
branches:
- main
- master
workflow_dispatch:
name: pkgdown
jobs:
pkgdown:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {os: 'ubuntu-latest', r: 'release'}
env:
R_KEEP_PKG_SOURCE: yes
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
KP_USER: ${{ secrets.KP_USER }}
KP_PW: ${{ secrets.KP_PW }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setting up R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
- uses: r-lib/actions/setup-pandoc@v2
- name: Setting up R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: 1
extra-packages: |
any::pkgdown
any::animation
any::cfbfastR
any::fastRhockey
any::ggimage
any::knitr
any::oddsapiR
any::pacman
any::pak
any::ragg
any::remotes
any::rsconnect
any::sportyR
any::tictoc
any::wehoop
any::zoo
local::.
needs: website
- name: Install system dependencies
run: |
pak::pkg_install("hadley/emo")
pak::pkg_install("r-lib/pkgapi")
shell: Rscript {0}
- name: Deploy package
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'