Skip to content

Merge pull request #28 from YuukiToriyama/feature/add-clippy-on-githu… #21

Merge pull request #28 from YuukiToriyama/feature/add-clippy-on-githu…

Merge pull request #28 from YuukiToriyama/feature/add-clippy-on-githu… #21

Workflow file for this run

name: Deploy demo page to GitHub Pages
on:
push:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Unit Testing for Wasm module
run: wasm-pack test --firefox --headless
- name: Build wasm module
run: wasm-pack build --target web --scope toriyama
- name: Move files
run: |
mkdir ./publish
rm ./pkg/.gitignore
mv ./pkg ./publish
mv ./public ./publish
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./publish