fix: fix fin positions on player skins. (#827) #37
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 Web Demo | |
on: | |
push: | |
tags: | |
- "v*" | |
branches: | |
- main | |
concurrency: | |
group: web-demo | |
cancel-in-progress: true | |
jobs: | |
publish-web-demo: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
name: 猬囷笍 Checkout | |
- name: 馃О Install Just | |
run: curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | sudo bash -s -- --to /usr/local/bin | |
- name: 馃 Install Rust Toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: wasm32-unknown-unknown | |
override: true | |
- uses: jetli/wasm-bindgen-action@v0.1.0 | |
name: 馃敡 Wasm Bindgen | |
with: | |
version: "0.2.86" | |
- uses: actions/cache@v3 | |
name: 鈾伙笍 Cache Cargo | |
with: | |
path: | | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
web-target/ | |
key: web-release-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
web-release- | |
- name: 馃敤 Build WASM Release | |
run: just build-release-web | |
- name: 馃殌 Deploy | |
uses: JamesIves/github-pages-deploy-action@4.1.3 | |
with: | |
branch: gh-pages | |
folder: web-target/wasm-release | |
target-folder: player/${{ github.ref_name }} | |
- name: 馃敆 Symlink Latest Build | |
run: | | |
mkdir latest-symlink-dir | |
ln -s ./${{ github.ref_name }} latest | |
mv latest latest-symlink-dir | |
- name: 馃殌 Deploy Symlinked Latest Build | |
uses: JamesIves/github-pages-deploy-action@4.1.3 | |
with: | |
branch: gh-pages | |
folder: latest-symlink-dir | |
clean: false | |
target-folder: player |