This repository has been archived by the owner on Dec 10, 2024. It is now read-only.
fix(analytics): reduce poll wait, improve result #84
This file contains 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 Triggers | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- 'src/trigger/*' | |
- 'trigger.config.ts' | |
pull_request: | |
paths: | |
- 'src/trigger/*' | |
- 'trigger.config.ts' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.bun | |
${{ github.workspace }}/.next/cache | |
# Generate a new cache whenever packages or source files change. | |
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }} | |
# If source files changed but packages didn't, rebuild from a prior cache. | |
restore-keys: | | |
${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}- | |
- name: install deps | |
run: bun i --frozen-lockfile | |
- name: 🚀 Deploy Trigger.dev | |
env: | |
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }} | |
run: | | |
bunx trigger.dev@latest deploy |