Skip to content

Commit

Permalink
Move trigger script
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 13, 2024
1 parent 459c620 commit bb80585
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/preview-dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:
run: bunx vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: 🏗 Build Project Artifacts
run: bunx vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: 🚀 Deploy to Vercel
run: bunx vercel deploy --prebuilt --archive=tgz --token=${{ secrets.VERCEL_TOKEN }}
- name: 🔄 Deploy Background Jobs
env:
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
run: |
TRIGGER_PROJECT_ID=${{ secrets.TRIGGER_PROJECT_ID }} bunx [email protected] deploy --env staging
working-directory: apps/dashboard
TRIGGER_PROJECT_ID=${{ secrets.TRIGGER_PROJECT_ID }} bunx [email protected] deploy --env staging
working-directory: apps/dashboard
- name: 🚀 Deploy to Vercel
run: bunx vercel deploy --prebuilt --archive=tgz --token=${{ secrets.VERCEL_TOKEN }}
12 changes: 6 additions & 6 deletions .github/workflows/production-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ jobs:
run: bun run test
- name: 📤 Pull Vercel Environment Information
run: bunx vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
working-directory: apps/dashboard
- name: 🏗 Build Project Artifacts
run: bunx vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: 🚀 Deploy to Vercel
run: |
bunx vercel deploy --prebuilt --prod --archive=tgz --token=${{ secrets.VERCEL_TOKEN }} > domain.txt
bunx vercel alias --scope=${{ secrets.VERCEL_ORG_ID }} --token=${{ secrets.VERCEL_TOKEN }} set `cat domain.txt` app.midday.ai
- name: 🔄 Deploy Background Jobs
env:
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
run: |
TRIGGER_PROJECT_ID=${{ secrets.TRIGGER_PROJECT_ID }} bunx [email protected] deploy
TRIGGER_PROJECT_ID=${{ secrets.TRIGGER_PROJECT_ID }} bunx [email protected] deploy
working-directory: apps/dashboard
- name: 🚀 Deploy to Vercel
run: |
bunx vercel deploy --prebuilt --prod --archive=tgz --token=${{ secrets.VERCEL_TOKEN }} > domain.txt
bunx vercel alias --scope=${{ secrets.VERCEL_ORG_ID }} --token=${{ secrets.VERCEL_TOKEN }} set `cat domain.txt` app.midday.ai
6 changes: 3 additions & 3 deletions apps/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"@todesktop/client-active-win": "^0.15.0",
"@todesktop/client-core": "^1.12.0",
"@todesktop/runtime": "^1.6.4",
"@trigger.dev/sdk": "3.3.5",
"@trigger.dev/react-hooks": "3.3.5",
"@trigger.dev/sdk": "3.3.6",
"@trigger.dev/react-hooks": "3.3.6",
"@uidotdev/usehooks": "^2.4.1",
"@upstash/ratelimit": "^2.0.4",
"@zip.js/zip.js": "2.7.52",
Expand Down Expand Up @@ -86,7 +86,7 @@
"@types/papaparse": "^5.3.15",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"trigger.dev": "3.3.5",
"trigger.dev": "3.3.6",
"typescript": "^5.6.3"
}
}
Binary file modified bun.lockb
Binary file not shown.

0 comments on commit bb80585

Please sign in to comment.