refactor: Plugin + Session builder API updated from bones refactor (#… #336
This file contains hidden or 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/[email protected] | |
| name: 🔧 Wasm Bindgen | |
| with: | |
| version: "0.2.93" | |
| - 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/[email protected] | |
| 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/[email protected] | |
| with: | |
| branch: gh-pages | |
| folder: latest-symlink-dir | |
| clean: false | |
| target-folder: player |