File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
permissions :
10
10
contents : read
11
+ pages : write
12
+ id-token : write
11
13
12
14
jobs :
13
15
build :
36
38
37
39
- name : Building wasm
38
40
run : |
39
- wasm32-wasi-cabal build sql2er-wasm -f build-sql2er-wasm
41
+ wasm32-wasi-cabal build sql2er-wasm -f build-sql2er-wasm
42
+
43
+ deploy :
44
+ environment :
45
+ name : github-pages
46
+ url : ${{steps.deployment.outputs.page_url}}
47
+
48
+ runs-on : ubuntu-22.04
49
+ needs : build
50
+ steps :
51
+ - name : Copy binary and index.html
52
+ - run : |
53
+ mkdir -p artifact_dir
54
+ cp $(cabal list-bin sql2er-wasm -f build-sql2er-wasm) artifact_dir/
55
+ cp index.html artifact_dir/
56
+
57
+ - name : Upload static files as artifact
58
+ id : deployment
59
+ uses : actions/upload-pages-artifact@v3
60
+ with :
61
+ path : artifact_dir/
62
+
63
+ - name : Deploy to GitHub Pages
64
+ id : deployment
65
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments