Skip to content

⬆️ bum gh-pages action version and check before deploy #9

⬆️ bum gh-pages action version and check before deploy

⬆️ bum gh-pages action version and check before deploy #9

name: deploy-gh-page
on:
push:
branches: [main]
jobs:
check:
uses: ./.github/workflows/check.yml
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- name: Install trunk
uses: jetli/trunk-action@v0.5.0
with:
version: "v0.20.3"
- name: Build
run: trunk build --release
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist