Merge pull request #6 from Git-abby/tailgard #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 to Vercel | |
on: | |
push: | |
branches: | |
- main # Adjust the branch as needed | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# Set up Node.js environment | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
# Install dependencies | |
- name: Install dependencies | |
run: npm install | |
# Build the project | |
- name: Build the project | |
run: npm run build | |
# Deploy to Vercel | |
- name: Deploy to Vercel | |
run: npx vercel --prod --token=$VERCEL_DEPLOYMENT_TOKEN |