From a6ba9d46c04f0a8924a3655b5ab1619387a8f0d9 Mon Sep 17 00:00:00 2001 From: Felix-Asante Date: Sat, 6 Jan 2024 01:04:09 +0100 Subject: [PATCH] gha updated --- .github/workflows/deploy-prod.yml | 33 +++++++++++++------------------ 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index e975a39..c797fb1 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -3,28 +3,23 @@ name: Deploy to vercel production env: VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} -on : +on: push: - branches: - main + branches: main jobs: deploy: runs-on: ubuntu-latest - steps: - name: Checkout Repository - uses: actions/checkout@v4 + - uses: actions/checkout@v4 + + - name: Install Vercel CLI + run: npm install --global vercel@latest + + - name: Pull Vercel Environment Information + run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} + + - name: Build Project Artifacts + run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - name: Set up Node - uses: actions/setup-node@v3 - with: - node-version: "18" - - name: Install Vercel CLI - run : npm install --global vercel@latest - - name: Pull Vercel Environment Information - run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} - - name: Deploy Project Artifacts to Vercel - run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} \ No newline at end of file + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}