File tree 1 file changed +20
-10
lines changed
1 file changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,25 @@ jobs:
35
35
steps :
36
36
- name : Checkout repository
37
37
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
41
53
with :
42
- name : wasm-build
43
- path : pkg
44
-
54
+ # Upload entire repository
55
+ path : ./out
56
+
45
57
- 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
You can’t perform that action at this time.
0 commit comments