Skip to content

Commit

Permalink
trigger.dev github action
Browse files Browse the repository at this point in the history
  • Loading branch information
GwonHyeok committed Feb 18, 2025
1 parent b0c23bc commit 3aaabc6
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release-trigger-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy to Trigger.dev (prod)

on:
push:
branches:
- main

job:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: "20.x"

- name: Install dependencies
run: npm install

- name: 🚀 Deploy Trigger.dev
env:
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
run: |
npm run deploy:trigger-prod
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "next dev",
"build": "npx prisma generate && next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"deploy:trigger-prod": "npx [email protected] deploy"
},
"prisma": {
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
Expand All @@ -23,7 +24,7 @@
"@radix-ui/react-select": "^2.1.5",
"@radix-ui/react-slot": "^1.1.1",
"@radix-ui/react-tooltip": "^1.1.7",
"@trigger.dev/sdk": "^3.3.16",
"@trigger.dev/sdk": "3.3.16",
"@vercel/blob": "^0.27.1",
"bcryptjs": "^3.0.0",
"class-variance-authority": "^0.7.1",
Expand Down

0 comments on commit 3aaabc6

Please sign in to comment.