name: Deploy to Pages # Builds webapp/ and publishes it as this repository's site. # # Two notes on the vault: # - there is no cache service, so setup-node runs without `cache: npm`; # - a mochi site is served at ///site/ or at the root of an # origin of its own. The Vite build uses a relative base (`base: './'`), so # it works at either without being told the deploy path, and configure-pages # is therefore only here for parity with the deploy step. on: push: branches: [main] workflow_dispatch: 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 - uses: actions/setup-node@v4 with: node-version: 22 - name: Install working-directory: webapp run: npm ci # Runs matlab/cymbal_validate.m through numbl: the free circular plate # closed forms, the eigensolve and radiation identities, energy # conservation of the cascade, reproducibility of the seeded stroke # pattern, and the pinned end-to-end diagnostics. Fails the build on any # mismatch. - name: Validate the model working-directory: webapp run: npm run selftest - name: Build working-directory: webapp run: npm run build - name: Setup Pages uses: actions/configure-pages@v5 - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: path: webapp/dist deploy: needs: build runs-on: ubuntu-latest environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - name: Deploy to Pages id: deployment uses: actions/deploy-pages@v4