-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (39 loc) · 1.27 KB
/
pkgdown.yaml
File metadata and controls
47 lines (39 loc) · 1.27 KB
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
on:
release:
types: [published]
workflow_dispatch:
name: Build documentation website
##
## This job:
## - re-renders the index.md file from index.Rmd,
## - builds pgkdown website
## - deploys pgkdown website
##
jobs:
build-pkgdown-site:
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
JAVA_VERSION: 11
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
extra-repositories: "https://md-anderson-bioinformatics.r-universe.dev"
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website
- name: Set up JDK for java ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v3
with:
java-version: "${{ env.JAVA_VERSION }}"
distribution: 'temurin'
- name: Render index.Rmd (landing page for website)
run: Rscript -e 'rmarkdown::render("index.Rmd", "md_document"); print(sessionInfo())'
- name: Deploy package
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'