Skip to content

Commit

Permalink
gha added to deploy app to prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix-Asante committed Jan 5, 2024
1 parent 0448544 commit 9b5d145
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 15 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy to vercel production

env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on :
push:
branches:
main
jobs:
deploy:
runs-on: ubuntu-latest

steps:
name: Checkout Repository
uses: actions/checkout@v4

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 }}
15 changes: 0 additions & 15 deletions .github/workflows/deploy-staging.yml

This file was deleted.

0 comments on commit 9b5d145

Please sign in to comment.