diff --git a/.github/workflows/deployProd.yml b/.github/workflows/deployProd.yml index 435ff3e..9fc870f 100644 --- a/.github/workflows/deployProd.yml +++ b/.github/workflows/deployProd.yml @@ -1,7 +1,8 @@ name: "Deploy Prod" on: - workflow_dispatch: + push: + branches: [ prod ] jobs: vercel: diff --git a/.github/workflows/deployQA.yml b/.github/workflows/deployQA.yml new file mode 100644 index 0000000..3a896da --- /dev/null +++ b/.github/workflows/deployQA.yml @@ -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 }}