Deploy #160
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
| # Cloudflare Workers + OpenNext 배포 (Vercel에서 이전, 2026-07-13) | |
| # - main push: 코드 변경 배포 | |
| # - schedule: 6시간마다 재빌드 → 데모 Notion 콘텐츠 반영 | |
| # - workflow_dispatch: 즉시 반영용 수동 실행 | |
| name: Deploy | |
| on: | |
| push: | |
| branches: [main] | |
| schedule: | |
| - cron: "37 */6 * * *" | |
| workflow_dispatch: | |
| concurrency: deploy-production | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm exec opennextjs-cloudflare build | |
| # opennextjs-cloudflare deploy = populateCache(정적 자산 캐시) + wrangler deploy | |
| - name: Deploy to Cloudflare | |
| run: pnpm exec opennextjs-cloudflare deploy | |
| env: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} |