Merge pull request #28 from chimobi-justice/ft/follow-authors #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Vercel Production Deployment | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy-production: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Vite and dependencies | |
run: npm install | |
- name: Build Project with Vite | |
run: npm run build | |
- name: Install Vercel CLI | |
run: npm install --global vercel | |
- name: Deploy to Vercel | |
env: | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_ORG_PROJECT }} | |
run: vercel --prod --token ${{ secrets.VERCEL_TOKEN }} |