fix: server #5
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: Deploy Server | |
on: | |
push: | |
paths: | |
- 'server/**' # Trigger only if files in the `server` directory change | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Deploy to Vercel | |
env: | |
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} # Use your Vercel token here | |
run: | | |
npm install -g vercel | |
cd server # Navigate to server directory | |
vercel --prod --token $VERCEL_TOKEN |