-
Notifications
You must be signed in to change notification settings - Fork 26
72 lines (61 loc) · 1.7 KB
/
Copy pathpkgdown.yaml
File metadata and controls
72 lines (61 loc) · 1.7 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
on:
push:
branches: [master]
pull_request:
release:
types: [published]
workflow_dispatch:
name: pkgdown
permissions:
contents: read
pages: write
id-token: write
jobs:
pkgdown:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v6
with:
distribution: temurin
java-version: "21"
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
- name: Configure Java for R
run: sudo R CMD javareconf
- uses: r-lib/actions/setup-r-dependencies@v2
with:
working-directory: bartMachine
extra-packages: any::pkgdown, local::../bartMachineJARs, local::.
needs: website
- name: Build site
run: |
options(java.parameters = c("-Xmx2g", "--add-modules=jdk.incubator.vector"))
pkgdown::build_site_github_pages(
pkg = "bartMachine",
new_process = FALSE,
install = FALSE
)
shell: Rscript {0}
- name: Upload GitHub Pages artifact
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v5
with:
path: bartMachine/docs
deploy:
if: github.event_name != 'pull_request'
needs: pkgdown
runs-on: ubuntu-latest
concurrency:
group: pages
cancel-in-progress: true
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5