-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (33 loc) · 915 Bytes
/
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
on:
push:
branches:
- main
- release
workflow_dispatch:
inputs:
git-ref:
description: Git Ref (Optional)
required: false
name: pkgdown
jobs:
pkgdown:
runs-on: macos-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Clone Repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.git-ref || github.sha }}
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
github::r-lib/pkgdown
local::.
- name: Deploy package
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'