Merge pull request #15 from Doppp/codex/foundational-examples-hardening #35
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: Validate and deploy explorables.ai | |
| on: | |
| push: | |
| branches: [master] | |
| workflow_dispatch: | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: pnpm/action-setup@v6 | |
| with: | |
| version: 11.15.1 | |
| run_install: false | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 24.17.0 | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - name: Install Chromium | |
| run: | | |
| sudo sed -i 's|mirror+file:/etc/apt/apt-mirrors.txt|https://archive.ubuntu.com/ubuntu|g' /etc/apt/sources.list.d/ubuntu.sources | |
| pnpm exec playwright install --with-deps chromium | |
| - run: pnpm check | |
| - run: pnpm site:test | |
| - run: pnpm site:build | |
| - name: Verify Pages artifact | |
| run: test -f apps/site/dist/index.html && test "$(cat apps/site/dist/CNAME)" = "explorables.ai" | |
| - uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: apps/site/dist | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5 |