run alerts once an hour #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 Sync (Transfers) to Trigger.dev (prod) | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'sync/transfers/**' | |
| - 'packages/facilitators/**' | |
| - 'pnpm-lock.yaml' | |
| - '.github/workflows/deploy-sync.yml' | |
| jobs: | |
| deploy: | |
| name: Deploy Transfers to Trigger.dev | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Generate Prisma client | |
| working-directory: ./sync/transfers | |
| run: pnpm db:generate | |
| - name: Deploy to Trigger.dev | |
| working-directory: ./sync/transfers | |
| env: | |
| TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }} | |
| run: pnpm trigger:deploy |