simon/i26 emoji helper functions (#56) #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |