Merge pull request #2 from vectorgameexperts/dependabot/github_action… #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
push: | |
branches: [main] | |
jobs: | |
release: | |
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 | |
toolchain: stable | |
- 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: | | |
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: ./dist |