Skip to content

Update Flutter version and add dependency management step in GitHub A… #10

Update Flutter version and add dependency management step in GitHub A…

Update Flutter version and add dependency management step in GitHub A… #10

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches:
- master
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Flutter
uses: subosito/flutter-action@v1
with:
flutter-version: '3.16.5'
channel: 'stable'
- name: Get dependencies
run: flutter pub get
- name: Build Flutter Web
run: flutter build web
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.1
with:
publish-dir: 'build/web'
production-branch: master
github-token: ${{ secrets.MY_GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}