Add a measure/ruler tool (#15) #23
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 | |
| # Builds the static site and publishes it to GitHub Pages on every push to | |
| # main. The RF engine ships as committed WebAssembly (src/engine/generated/), | |
| # so this needs no Emscripten — just a frontend build. Correctness (engine | |
| # rebuild diff, type check, golden tests) is gated separately by ci.yml. | |
| # | |
| # One-time setup in the repo: Settings → Pages → Source = "GitHub Actions". | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| # Allow the deploy job to publish to Pages; one in-flight deploy at a time. | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v6 | |
| with: | |
| version: 9 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build site | |
| run: pnpm build | |
| env: | |
| # Optional: add a STADIA_API_KEY repo secret (Settings → Secrets and | |
| # variables → Actions) to enable the Stadia "Terrain" basemap in | |
| # production. Without it, the no-key "Topographic" terrain still works. | |
| VITE_STADIA_API_KEY: ${{ secrets.STADIA_API_KEY }} | |
| - uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: dist | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v5 |