-
Notifications
You must be signed in to change notification settings - Fork 127
48 lines (38 loc) · 1.27 KB
/
update-examples.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
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
on:
workflow_dispatch:
workflow_run:
workflows: ["R-CMD-check"]
types:
- completed
name: Build Examples
jobs:
R-CMD-check:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
name: 'ubuntu-latest (R release) [Pandoc 2.14.2]'
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: 2.19.2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: local::.
- name: Build examples
run: Rscript tools/website.R
shell: bash
- name: Clean source files for deployment
run: |
rm *.Rmd index.bib
working-directory: inst/examples
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: inst/examples # The folder the action should deploy.