-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.05 KB
/
ghpages.yaml
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
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: core
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@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
publish_dir: ./publish