Commit 1d612a1 1 parent f2fb73a commit 1d612a1 Copy full SHA for 1d612a1
File tree 1 file changed +49
-0
lines changed
1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy jaq playground
2
+
3
+ on :
4
+ push :
5
+ branches : ["main"]
6
+
7
+ workflow_dispatch :
8
+
9
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10
+ permissions :
11
+ contents : read
12
+ pages : write
13
+ id-token : write
14
+
15
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
16
+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
17
+ concurrency :
18
+ group : " pages"
19
+ cancel-in-progress : false
20
+
21
+ jobs :
22
+ deploy :
23
+ environment :
24
+ name : github-pages
25
+ url : ${{ steps.deployment.outputs.page_url }}
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - name : Checkout
29
+ uses : actions/checkout@v4
30
+ - name : Install wasm-pack
31
+ shell : bash
32
+ run : |
33
+ VERSION="0.12.1"
34
+ DIR=wasm-pack-v${VERSION}-x86_64-unknown-linux-musl
35
+ wget https://github.com/rustwasm/wasm-pack/releases/download/v${VERSION}/${DIR}.tar.gz
36
+ tar xzf ${DIR}.tar.gz
37
+ mv ${DIR}/wasm-pack ~/.cargo/bin
38
+ - name : Compile
39
+ run : wasm-pack build --target web --release
40
+ working-directory : jaq-play
41
+ - name : Setup Pages
42
+ uses : actions/configure-pages@v4
43
+ - name : Upload artifact
44
+ uses : actions/upload-pages-artifact@v3
45
+ with :
46
+ path : ' jaq-play'
47
+ - name : Deploy to GitHub Pages
48
+ id : deployment
49
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments