Skip to content
name: Continuous deployment 4
on: [push, pull_request]
jobs:
release:
runs-on: ubuntu-latest
environment: pages_env
defaults:
run:
working-directory: ./wasmtool
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
- uses: jetli/[email protected]
- uses: jetli/[email protected]
- uses: actions/checkout@v2
- run: trunk build --release
- uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: wasmtool/dist