Skip to content

Commit 2f4e408

Browse files
committed
Fix WASM output path for GitHub Pages deployment
wasm-bindgen now outputs to web/pkg/ to match the import path in index.html (./pkg/dendrite_web.js) Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
1 parent 0c48768 commit 2f4e408

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ jobs:
5454
- name: Build WASM
5555
run: |
5656
cargo build --target wasm32-unknown-unknown -p dendrite-web --release
57-
wasm-bindgen --out-dir web --target web --no-typescript target/wasm32-unknown-unknown/release/dendrite_web.wasm
57+
mkdir -p web/pkg
58+
wasm-bindgen --out-dir web/pkg --target web --no-typescript target/wasm32-unknown-unknown/release/dendrite_web.wasm
5859
5960
- name: Setup Pages
6061
uses: actions/configure-pages@v4

0 commit comments

Comments
 (0)