Skip to content

Commit

Permalink
fix: update deploy config
Browse files Browse the repository at this point in the history
  • Loading branch information
munezerobagira committed Aug 28, 2023
1 parent b273b6f commit 0cdc513
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/vercel-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
name: Deploy to Vercel
name: Vercel Production Deployment
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:
Expand All @@ -15,17 +29,18 @@ jobs:

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install dependencies
run: npm install -g vercel
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Build app
run: flutter build web
- name: Deploy to Vercel
run: vercel --token ${{ secrets.VERCEL_TOKEN }}
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
- 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 }}

1 comment on commit 0cdc513

@vercel
Copy link

@vercel vercel bot commented on 0cdc513 Aug 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

passbags – ./

passbags-sos10e.vercel.app
passbags.vercel.app
passbags-git-main-sos10e.vercel.app

Please sign in to comment.