feat: add round revealing and statistics #15
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: Deploy to GitHub Pages | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| rustflags: "" | |
| toolchain: stable | |
| cache: true | |
| - name: Install mise and build | |
| uses: jdx/mise-action@v3 | |
| with: | |
| install: true | |
| cache: true | |
| - name: Install SpacetimeDB | |
| run: curl -sSf https://install.spacetimedb.com | sh -s -- --yes | |
| - name: Install dependencies | |
| run: mise run prepare:web | |
| - name: Check | |
| run: mise run check | |
| - name: Build | |
| run: MISE_JOBS=1 mise run build | |
| env: | |
| VITE_SPACETIMEDB_URI: https://maincloud.spacetimedb.com | |
| VITE_SPACETIMEDB_MODULE: timerertim-plapok-01 | |
| - name: Upload pages artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: web/dist | |
| - name: Upload SpacetimeDB wasm artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: module-wasm | |
| path: spacetimedb/target/wasm32-unknown-unknown/release/module.opt.wasm | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install mise and build | |
| uses: jdx/mise-action@v3 | |
| with: | |
| install: true | |
| cache: true | |
| - name: Install SpacetimeDB | |
| run: curl -sSf https://install.spacetimedb.com | sh -s -- --yes | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 | |
| - name: Download SpacetimeDB wasm artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: module-wasm | |
| path: spacetimedb/target/wasm32-unknown-unknown/release | |
| - name: Publish SpacetimeDB module | |
| run: mise run publish:spacetimedb | |
| env: | |
| SPACETIME_TOKEN: ${{ secrets.SPACETIME_TOKEN }} |