Skip to content

update

update #122

Workflow file for this run

on:
push:
branches: ["master"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: 🌊
uses: actions/checkout@v3
- name: 🌊
uses: shalzz/[email protected]
env:
BUILD_DIR: '.'
BUILD_ONLY: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --target=wasm32-unknown-unknown --examples
- name: 🌊
run: cargo install -f wasm-bindgen-cli --version 0.2.87
- name: 🌊
run: |
for example in examples/*.rs; do
example_name=$(basename "$example" .rs)
wasm-bindgen "target/wasm32-unknown-unknown/release/examples/${example_name}.wasm" --out-dir public --target web
done
- name: 🌊
uses: actions/configure-pages@v2
- name: 🌊
uses: actions/upload-pages-artifact@v1
with:
path: './public'
- name: 🌊
uses: actions/deploy-pages@v1