Skip to content

better aimline

better aimline #29

Workflow file for this run

name: Deploy
on:
push:
branches:
- 'master'
jobs:
gh_pages:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- name: Install Trunk
uses: jetli/[email protected]
with:
version: 'v0.18.6'
- name: Build
run: trunk build --release --public-url="//cdn.jsdelivr.net/gh/ommyzhang/bouncy-ball@gh-pages/" --no-sri
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
commit_message: ${{ github.event.head_commit.message }}
itch_io:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- name: Install Trunk
uses: jetli/[email protected]
with:
version: 'v0.18.6'
- name: Build
run: trunk build --release --public-url="./"
- name: Push to itch.io
uses: manleydev/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: html-beta
ITCH_GAME: bouncy-ball
ITCH_USER: ymmo
PACKAGE: dist