File tree 1 file changed +41
-0
lines changed
1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Builds & Deploys WASM examples to GitHub Pages
2
+
3
+ on :
4
+ push :
5
+ branches : ["master"]
6
+ workflow_dispatch :
7
+
8
+ env :
9
+ CARGO_TERM_COLOR : always
10
+
11
+ permissions :
12
+ contents : read
13
+ pages : write
14
+ id-token : write
15
+
16
+ concurrency :
17
+ group : " pages"
18
+ cancel-in-progress : false
19
+
20
+ jobs :
21
+ deploy :
22
+ environment :
23
+ name : github-pages
24
+ url : ${{ steps.deployment.outputs.page_url }}
25
+ runs-on : ubuntu-latest
26
+ steps :
27
+ - name : Checkout
28
+ uses : actions/checkout@v4
29
+ - name : Install dependencies
30
+ run : sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
31
+ - name : make wasm-examples
32
+ run : make wasm-examples
33
+ - name : Setup Pages
34
+ uses : actions/configure-pages@v5
35
+ - name : Upload artifact
36
+ uses : actions/upload-pages-artifact@v3
37
+ with :
38
+ path : ' ./web-src'
39
+ - name : Deploy to GitHub Pages
40
+ id : deployment
41
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments