feat(site,db,config): Next.js 16 + Bun vendored ui-kit static site wi… #44
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: | |
| push: | |
| branches: [main, master] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # Prevent concurrent deploys. | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install site deps | |
| working-directory: site | |
| run: bun install | |
| - name: Build site (Next.js static export) | |
| working-directory: site | |
| env: | |
| PAGES_BASE_PATH: /metanoia | |
| run: bun run build | |
| # Static export already copies site/public/* → site/out/* | |
| # including .nojekyll and .well-known/assetlinks.json. Verify: | |
| - name: Verify export | |
| run: | | |
| ls -lah site/out | head -n 50 | |
| echo "--- .nojekyll ---" | |
| ls -l site/out/.nojekyll && echo "ok: .nojekyll present" || (echo "missing .nojekyll" && exit 1) | |
| echo "--- .well-known ---" | |
| ls -l site/out/.well-known/assetlinks.json && cat site/out/.well-known/assetlinks.json | |
| echo "--- out index ---" | |
| ls -l site/out/index.html | head -n 5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: site/out | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |