forked from rstudio/shiny
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.25 KB
/
build-webr-image.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
on:
push:
branches: [webr, webr-safari]
pull_request:
branches: [webr, webr-safari]
workflow_dispatch:
name: Build wasm R package repository
jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/r-wasm/webr:main
steps:
- uses: actions/checkout@v3
- name: Install the local webr support package
run: rm -rf /opt/webr/packages/webr/libs && R CMD INSTALL /opt/webr/packages/webr
- name: Build wasm packages
uses: r-wasm/actions/build-wasm-packages@v1
with:
packages: .github/workflows/build-webr-packages
strip: c("demo", "doc", "examples", "help", "html", "include", "tests", "testthat", "vignette")
deploy:
name: Deploy to GitHub pages
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3
- name: Download wasm artifacts
uses: r-wasm/actions/download-wasm-artifacts@v1
with:
image-path: _site
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2