Skip to content

adds flutter to actions #5

adds flutter to actions

adds flutter to actions #5

name: Deploy corbado_auth example to Vercel
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
# Pin to a Flutter version that your app supports
# or omit to use the default stable version
flutter-version: "3.27.4"
- name: Deploy Next example to Vercel
run: |
cd packages/corbado_auth/example
npx vercel pull -t $VERCEL_TOKEN
npx vercel build --prod -t $VERCEL_TOKEN
npx vercel deploy --prebuilt --prod -t $VERCEL_TOKEN
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_CORBADO_AUTH_EXAMPLE }}