diff options
| author | Fuwn <[email protected]> | 2024-07-24 23:28:28 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-07-24 23:31:13 -0700 |
| commit | 22be109e9035cffb53faab310fa34c1ddc31a0ac (patch) | |
| tree | b78ceb77461d451da4cfbc34471c841f49f35cec /.github/workflows | |
| parent | refactor(trigger): v2 -> v3 (diff) | |
| download | due.moe-22be109e9035cffb53faab310fa34c1ddc31a0ac.tar.xz due.moe-22be109e9035cffb53faab310fa34c1ddc31a0ac.zip | |
ci(trigger): automatic deployment
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/release-trigger-prod.yml | 30 |
1 files changed, 30 insertions, 0 deletions
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 |