46 lines
971 B
YAML
46 lines
971 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
|
|
|
|
- name: check jq
|
|
run: |
|
|
echo "What?"
|
|
echo $GITHUB_PATH
|
|
sudo apt install jq
|
|
which jq
|
|
echo "/usr/bin" >> $GITHUB_PATH
|
|
|
|
# - uses: actions/setup-java@v3
|
|
# with:
|
|
# distribution: "zulu"
|
|
# java-version: "12.x"
|
|
|
|
- uses: actions/flutter-action@v2
|
|
with:
|
|
flutter-version: '3.*'
|
|
channel: 'any'
|
|
- run: "flutter --version"
|
|
|
|
- name: Get dependencies
|
|
run: flutter pub Get
|
|
|
|
- name: Run Code Metrics
|
|
run: flutter pub run dart_code_metrics:metrics --reporter=github lib
|
|
|
|
# Runs a set of commands using the runners shell
|
|
- name: Start release build
|
|
run: flutter build appbundle
|