Skip to content

Commit 7d77362

Browse files
committed
Add GHA to build shiny webR image
1 parent 7113cf6 commit 7d77362

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
on:
2+
push:
3+
branches: [webr, webr-safari]
4+
pull_request:
5+
branches: [webr, webr-safari]
6+
workflow_dispatch:
7+
8+
name: Build wasm R package repository
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
container: ghcr.io/r-wasm/webr:main
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Build wasm packages
17+
uses: r-wasm/actions/build-wasm-packages@v1
18+
with:
19+
packages: .github/workflows/build-webr-packages
20+
strip: c("demo", "doc", "examples", "help", "html", "include", "tests", "testthat", "vignette")
21+
deploy:
22+
name: Deploy to GitHub pages
23+
needs: build
24+
runs-on: ubuntu-latest
25+
permissions:
26+
pages: write
27+
id-token: write
28+
environment:
29+
name: github-pages
30+
url: ${{ steps.deployment.outputs.page_url }}
31+
steps:
32+
- uses: actions/checkout@v3
33+
- name: Download wasm artifacts
34+
uses: r-wasm/actions/download-wasm-artifacts@v1
35+
with:
36+
image-path: _site
37+
- name: Upload Pages artifact
38+
uses: actions/upload-pages-artifact@v2
39+
- name: Deploy to GitHub Pages
40+
id: deployment
41+
uses: actions/deploy-pages@v2
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
httpuv
2+
codetools
3+
renv
4+
shiny

0 commit comments

Comments
 (0)