Skip to content

Commit 228fc04

Browse files
authored
Update deploy-gh-pages.yml
Signed-off-by: Christopher Brownlie <[email protected]>
1 parent 0ef02b6 commit 228fc04

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

.github/workflows/deploy-gh-pages.yml

+20-10
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,25 @@ jobs:
3535
steps:
3636
- name: Checkout repository
3737
uses: actions/checkout@v2
38-
39-
- name: Download artifacts
40-
uses: actions/download-artifact@v2
38+
39+
- name: Install wasm-bindgen-cli
40+
run: cargo install wasm-bindgen-cli
41+
42+
- name: Generate wasm-bindgen output
43+
run: wasm-bindgen target/wasm32-unknown-unknown/release/random_shader_window.wasm --out-dir ./out --web
44+
45+
- name: Copy index.html to deploy directory
46+
run: cp index.html ./out
47+
48+
- name: Setup Pages
49+
uses: actions/configure-pages@v4
50+
51+
- name: Upload artifact
52+
uses: actions/upload-pages-artifact@v3
4153
with:
42-
name: wasm-build
43-
path: pkg
44-
54+
# Upload entire repository
55+
path: ./out
56+
4557
- name: Deploy to GitHub Pages
46-
uses: peaceiris/actions-gh-pages@v3
47-
with:
48-
github_token: ${{ secrets.GITHUB_TOKEN }}
49-
publish_dir: ./pkg
58+
id: deployment
59+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)