chore: minor fixes and improvements #14
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: Pages Build | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: [ 'docs/**' ] | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_INCREMENTAL: 0 | |
RUST_BACKTRACE: 1 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
registry-url: https://registry.npmjs.org/ | |
- run: npm ci | |
- name: Install wasm-bindgen | |
run: cargo install --force wasm-bindgen-cli | |
- name: Add WASM target | |
run: rustup target add wasm32-unknown-unknown | |
- name: Build WASM | |
run: ./build.sh | |
- name: Build Pages | |
run: npm run build | |
- run: | | |
git config --global user.name 'Alessandro' | |
git config --global user.email '[email protected]' | |
git add -A | |
git diff-index --quiet HEAD || git commit -m "chore(pages): build [skip ci]" && git push |