fix: code cleanup #25
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 Production | |
on: | |
push: | |
paths: | |
- "server/**" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "16" # Ensure you're using the appropriate Node.js version | |
- name: Install Vercel CLI globally | |
run: npm install -g vercel | |
- name: Deploy to Vercel | |
env: | |
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
run: | | |
cd server # Navigate to the server directory | |
vercel --prod --token $VERCEL_TOKEN --yes |