chore(api): regenerate static API for new docs (F133, settings tabs, … #41
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: Update changelog & deploy | |
| on: | |
| # Trigger when CMS monorepo pushes a new tag | |
| repository_dispatch: | |
| types: [cms-release] | |
| # Manual trigger | |
| workflow_dispatch: | |
| # Auto on push to main (content changes) | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'content/**' | |
| - 'src/**' | |
| - 'scripts/**' | |
| - 'public/**' | |
| - '.github/workflows/**' | |
| - 'Dockerfile' | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # full history for changelog generation | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| # Note: changelog is generated locally (needs CMS repo git tags). | |
| # API is generated by prebuild script in package.json. | |
| # Build | |
| - run: pnpm build | |
| # Deploy to Fly.io | |
| - run: curl -L https://fly.io/install.sh | sh | |
| - run: ~/.fly/bin/flyctl deploy --remote-only --now | |
| env: | |
| FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |