Skip to content

Commit

Permalink
Update prod workflow and add deploy QA
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoEscaleira committed Nov 21, 2023
1 parent 29d2cd7 commit 1b2b92f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deployProd.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: "Deploy Prod"

on:
workflow_dispatch:
push:
branches: [ prod ]

jobs:
vercel:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/deployQA.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Deploy QA"

on:
push:
branches: [ qa ]

jobs:
vercel:
runs-on: ubuntu-latest
name: "Deploy QA"

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18

- name: "Deploy to Vercel QA"
run: npx vercel --token ${VERCEL_TOKEN}
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}

0 comments on commit 1b2b92f

Please sign in to comment.