Skip to content

release: v2.4.1

release: v2.4.1 #141

Workflow file for this run

name: CI
on:
push:
paths:
- ".github/workflows/**"
- "lib/**"
- "android/**"
- "ios/**"
- "web/**"
- "pubspec.yaml"
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: "12.x"
- uses: subosito/flutter-action@v1
with:
channel: "stable"
- name: Setup project
run: |
echo "APP_VERSION=$(grep -Po '(?<=version: )(.*)(?=\+)' pubspec.yaml)" >> $GITHUB_ENV
flutter pub get
- name: Lint and Analyze code
run: |
dart format --set-exit-if-changed .
flutter analyze .
# - name: Run Tests
# run: flutter test
- name: Build debug apk
run: |
flutter build apk --debug
echo "Built apk for version ${APP_VERSION}"
- uses: actions/upload-artifact@v2
with:
name: "Heartry-nightly-v${{ env.APP_VERSION }}.apk"
path: build/app/outputs/flutter-apk/app-debug.apk