ci(site): deploy landing to Cloudflare Pages on apps/site changes #1
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 Landing Site | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'apps/site/**' | |
| - '.github/workflows/site.yml' | |
| workflow_dispatch: | |
| concurrency: | |
| group: afilmory-site | |
| cancel-in-progress: false | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| env: | |
| PUBLIC_API_URL: https://api.afilmory.art | |
| AFILMORY_SITE_STRICT: '1' | |
| CLOUDFLARE_ACCOUNT_ID: 4d01e7a919eff82eb04333f27cb9da3b | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install site dependencies | |
| run: pnpm install --frozen-lockfile --filter @afilmory/site... --ignore-scripts | |
| - name: Build landing | |
| run: pnpm site:build | |
| - name: Deploy to Cloudflare Pages | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: 4d01e7a919eff82eb04333f27cb9da3b | |
| command: pages deploy apps/site/dist --project-name=afilmory-site --branch=main |