Merge pull request #206 from YuukiToriyama/release/v0.1.0-beta.11 #55
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: 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@v4 | |
- name: Install wasm-pack | |
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
- name: Unit Testing for Wasm module | |
working-directory: wasm | |
run: wasm-pack test --firefox --headless | |
- name: Build wasm module | |
working-directory: wasm | |
run: wasm-pack build --target web --scope toriyama --out-name japanese_address_parser --features debug | |
- name: Move files | |
run: | | |
mkdir ./publish | |
rm ./wasm/pkg/.gitignore | |
mv ./wasm/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 |