Skip to content

ci: re-organize repo build to look like other deployments #2

ci: re-organize repo build to look like other deployments

ci: re-organize repo build to look like other deployments #2

Workflow file for this run

name: Build WASM R package repository
on:
push:
branches: [main]
workflow_dispatch:
# set permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
packages: read
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
container: ghcr.io/r-wasm/webr:main
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v3
# https://github.com/actions/configure-pages
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
# https://github.com/r-wasm/actions
- name: Build wasm packages
uses: r-wasm/actions/build-wasm-packages@v1
with:
upload-image: false
upload-repo: false
strip: c("demo", "doc", "examples", "help", "html", "include", "tests", "vignette")
# https://github.com/actions/upload-pages-artifact
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2