Files
eatvio_app/.gitea/workflows/build.yml
2024-02-27 10:26:35 +00:00

44 lines
898 B
YAML

name: Android Release
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install jq
run: |
apt update
apt-get install -y jq
- uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "12.x"
- uses: actions/flutter-action@v2
with:
channel: 'stable'
- run: |
flutter --version
flutter channel stable
flutter upgrade --force
- name: Get dependencies
run: flutter pub get
- name: Run Code Metrics
run: flutter pub run dart_code_metrics:metrics --reporter=github lib
- name: Build apk
run: flutter build apk
# Runs a set of commands using the runners shell
- name: Start release build
run: flutter build appbundle