Merge pull request #8 from Git-abby/landingPage #11
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 | ||
working-directory: ./frontend | ||
run: npm install | ||
# Build the project | ||
- name: Build the project | ||
working-directory: ./frontend | ||
run: npm run build | ||
# Deploy to Vercel | ||
- name: Deploy to Vercel | ||
run: npx vercel --prod --token=${{VERCEL_DEPLOYMENT_TOKEN}} | ||
Check failure on line 35 in .github/workflows/vercel-deploy.yml GitHub Actions / Deploy to VercelInvalid workflow file
|
||