Skip to content

Merge pull request #1 from TurtIeSocks/i18n-number-component #11

Merge pull request #1 from TurtIeSocks/i18n-number-component

Merge pull request #1 from TurtIeSocks/i18n-number-component #11

Workflow file for this run

name: deploy-github-page
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: write
jobs:
build-web:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
with:
cache-all-crates: true
- name: Install Dependencies
run: sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev
- name: Install trunk
uses: jetli/[email protected]
with:
version: 'latest'
- name: Add wasm target
run: |
rustup target add wasm32-unknown-unknown
- name: Build Release
working-directory: ./web
run: |
trunk build --release=true
- name: optimize Wasm
uses: NiklasEi/wasm-opt-action@v2
with:
file: web/dist/*.wasm
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: web/dist