Skip to content

Release

Release #20

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
release-web:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup | Toolchain
uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-unknown-unknown
- uses: jetli/[email protected]
with:
# Optional version of trunk to install(eg. 'v0.16.0', 'latest')
version: 'latest'
# Install cargo deps
- name: Trunk build
run: |
cd demo
trunk build --release --public-url /bevy-vello/
mv favicon.ico ./dist/favicon.ico
# Deploy, GitHub Pages
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./demo/dist
publish:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Setup | Toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cargo | Publish
run: |
cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}