Skip to content

Commit 303d0da

Browse files
committed
add deployment step
1 parent 7ecf25f commit 303d0da

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/wasm.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches:
77
- main
88

9-
name: Deploy WASM
9+
name: WASM
1010

1111
jobs:
1212
build:
@@ -27,3 +27,19 @@ jobs:
2727
run: sudo apt install brotli
2828
- name: Build WASM dist
2929
run: make
30+
- name: Upload artifact
31+
id: deployment
32+
uses: actions/upload-pages-artifact@v3
33+
with:
34+
path: www/
35+
36+
deploy:
37+
environment:
38+
name: github-pages
39+
url: ${{ steps.deployment.outputs.page_url }}
40+
runs-on: ubuntu-latest
41+
needs: build
42+
steps:
43+
- name: Deploy to GitHub Pages
44+
id: deployment
45+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)