Skip to content

Commit

Permalink
Add GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Jan 5, 2024
1 parent d838e7d commit 6fe24bc
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
^demorwasmbinary\.Rproj$
^\.Rproj\.user$
^\.github$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
22 changes: 22 additions & 0 deletions .github/workflows/deploy-cran-repo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Workflow derived from https://github.com/r-wasm/actions/tree/v1/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
# Only build on main or master branch
branches: [main, master]
# Or when triggered manually
workflow_dispatch:

name: Build and deploy wasm R package repository

jobs:
# Reads `./packages` for package references to put
# into a CRAN-like repository hosted on GitHub pages
deploy-cran-repo:
uses: r-wasm/actions/.github/workflows/deploy-cran-repo.yml@v1
permissions:
# To download GitHub Packages within action
repository-projects: read
# For publishing to pages environment
pages: write
id-token: write
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# webr-github-action-wasm-binaries

Example GitHub Actions workflow with an R package that generates developmental webR binaries

## Steps

1. Deployed

```r
usethis::use_github_action(
url = "https://raw.githubusercontent.com/r-wasm/actions/v1/examples/deploy-cran-repo.yml"
)
```

0 comments on commit 6fe24bc

Please sign in to comment.