Skip to content

Workflow file for this run

name: deploy
on:
push:
branches:
- '*'
pull_request:
branches:
- "*"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: wasm32-unknown-unknown
components: rust-src
- uses: jetli/[email protected]
with:
# Optional version of wasm-pack to install(eg. '0.9.1', 'latest')
version: 'latest'
- uses: jetli/[email protected]
with:
# Optional version of trunk to install(eg. 'v0.16.0', 'latest')
version: 'latest'
- name: Build
run: |
cd web && trunk build --public-url=/
- name: Deploy demo
- uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: web/dist
clean: true