-
-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (32 loc) · 972 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build & Deploy wasm Example
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: jetli/[email protected]
with:
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest')
version: "latest"
- name: checkout
uses: actions/[email protected]
- name: build
run: |
cd message_parser_wasm
wasm-pack build --target web
mkdir public
mv example.js public/example.js
mv example.html public/index.html
mv pkg public/pkg
rm public/pkg/.gitignore
- name: deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: message_parser_wasm/public # The folder the action should deploy.