Skip to content

minor changes

minor changes #16

Workflow file for this run

name: Flutter CI
# This workflow is triggered on pushes to the repository.
on:
push:
branches:
- main
# on: push # Default will running for every branch.
jobs:
build:
# This job will run on ubuntu virtual machine
runs-on: ubuntu-latest
steps:
# Setup Java environment in order to build the Android app.
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '17.x'
# Setup the flutter environment.
- uses: subosito/flutter-action@v1
with:
channel: 'stable' # 'dev', 'alpha', default to: 'stable'
flutter-version: 3.22.1
# flutter-version: '1.12.x' # you can also specify exact version of flutter
- env:
API_KEY: ${{ secrets.OPENAI_API_KEY }}
# Get flutter dependencies.
- run: flutter pub get
# Set environment variable and run build
- run: echo '$env:API_KEY' > .env
- run: dart run build_runner build
# Statically analyze the Dart code for any errors.
# - run: flutter analyze .
# Bypassing this for now, enable once we achieved prod status
# Run widget tests for our flutter project.
# - run: flutter test
# No tests has been implemented yet, skipping
# Build apk.
- run: flutter build apk
# Upload generated apk to the artifacts.
- uses: actions/upload-artifact@v1
with:
name: release-apk
path: build/app/outputs/apk/release/app-release.apk