Skip to content

Commit

Permalink
gha updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix-Asante committed Jan 6, 2024
1 parent 9b5d145 commit a6ba9d4
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

0 comments on commit a6ba9d4

Please sign in to comment.