Skip to content

test browser version #21

test browser version

test browser version #21

Workflow file for this run

name: ci
on:
push:
branches:
- main
permissions:
contents: write
pages: write
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: rustup target add wasm32-unknown-unknown
- name: Format
run: cargo fmt --check
- name: Check
run: cargo check
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings -D clippy::unwrap_used -D clippy::expect_used
- name: Build wasm
run: cargo build --release --target wasm32-unknown-unknown
- name: Prepare deploy dir
run: |
mkdir -p ./deploy
cp ./target/wasm32-unknown-unknown/release/tuco.wasm ./deploy/
cp index.html ./deploy/
cp -R resources ./deploy/
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./deploy