Skip to content

fix: update deploy config #1

fix: update deploy config

fix: update deploy config #1

name: Deploy to Vercel
name: Vercel Production Deployment

Check failure on line 2 in .github/workflows/vercel-deployment.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/vercel-deployment.yaml

Invalid workflow file

You have an error in your yaml syntax on line 2
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches:
- main
jobs:
Deploy-Production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
- name: Install dependencies
run: npm install -g vercel
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Build app
run: flutter build web
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}