Skip to content

Commit d76599d

Browse files
authored
Merge pull request #1 from triggerdotdev/pr-test
First GitHub action test
2 parents 63eee34 + 8eaefbf commit d76599d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/pr-preview.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: PR Preview Deploy
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, closed, merged]
6+
7+
jobs:
8+
deploy-preview:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: "20"
18+
cache: "npm"
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Deploy to Preview Environment
24+
run: npx [email protected] deploy --env preview -a https://matt-webapp.trigger.dev --self-hosted
25+
env:
26+
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)