Update to use new repo URL #15
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: Publish to GH Pages | |
on: | |
push: | |
branches: [main] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: rust-toolchain | |
uses: actions-rs/toolchain@v1.0.6 | |
with: | |
toolchain: stable | |
target: wasm32-unknown-unknown | |
- name: trunk-action | |
uses: jetli/trunk-action@v0.1.0 | |
- name: run trunk | |
run: trunk build --release | |
- name: GitHub Pages action | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: dist |