Skip to content

Commit 31c28dc

Browse files
committed
Directly interface with the r-wasm/actions/build-rwasm action
1 parent aaff346 commit 31c28dc

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

.github/workflows/deploy-cran-repo.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,25 @@ on:
77
# Or when triggered manually
88
workflow_dispatch: {}
99

10-
name: Build and deploy wasm R package repository
10+
name: Build WASM R package and Repo
1111

1212
jobs:
13-
# Reads `./packages` for package references to put
14-
# into a CRAN-like repository hosted on GitHub pages
1513
deploy-cran-repo:
16-
uses: r-wasm/actions/.github/workflows/deploy-cran-repo.yml@v1
17-
permissions:
18-
# To download GitHub Packages within action
19-
repository-projects: read
20-
# For publishing to pages environment
21-
pages: write
22-
id-token: write
23-
with:
24-
packages: "."
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Build WASM R packages
20+
uses: r-wasm/actions/build-rwasm@v1
21+
with:
22+
packages: "."
23+
repo-path: "_site"
24+
25+
- name: Deploy wasm R packages to GitHub pages 🚀
26+
if: github.event_name != 'pull_request'
27+
uses: JamesIves/github-pages-deploy-action@v4.4.1
28+
with:
29+
clean: false
30+
branch: gh-pages
31+
folder: _site

0 commit comments

Comments
 (0)