From 22be109e9035cffb53faab310fa34c1ddc31a0ac Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 24 Jul 2024 23:28:28 -0700 Subject: ci(trigger): automatic deployment --- .github/workflows/release-trigger-prod.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/release-trigger-prod.yml (limited to '.github') diff --git a/.github/workflows/release-trigger-prod.yml b/.github/workflows/release-trigger-prod.yml new file mode 100644 index 00000000..e111bec6 --- /dev/null +++ b/.github/workflows/release-trigger-prod.yml @@ -0,0 +1,30 @@ +name: Deploy to Trigger.dev (prod) + +on: + push: + branches: + - main + paths: + - 'trigger/**' + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - 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: | + npx trigger.dev@beta deploy --skip-typecheck -- cgit v1.2.3