Skip to content

Update LICENSE and README.md #96

Update LICENSE and README.md

Update LICENSE and README.md #96

Workflow file for this run

name: Flutter Build and Upload
on:
push:
paths-ignore:
- '**.md'
env:
FLUTTER_VERSION: 3.19.5
jobs:
build:
name: Build and Upload Android Binary
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '${{ env.FLUTTER_VERSION }}'
- name: Install Dependencies
run: flutter pub get
- name: Generate Code
run: flutter pub run build_runner build --delete-conflicting-outputs
- name: Build Android Binary
run: flutter build apk
- name: Sign APK
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md#android
run: |
python3 -c 'import os, base64; open("output.jks", "wb").write(base64.b64decode(os.environ.get("SIGNING_KEY_BASE64")))'
"$ANDROID_HOME/build-tools/34.0.0/apksigner" sign --ks output.jks -v --v2-signing-enabled true --ks-key-alias "$SIGNING_KEY_ALIAS" --ks-pass "pass:$KEY_STORE_PASSWORD" "$APK_PATH"
env:
SIGNING_KEY_BASE64: ${{ secrets.SIGNING_KEY }}
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
APK_PATH: build/app/outputs/flutter-apk/app-release.apk
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: android-app
path: build/app/outputs/flutter-apk/app-release.apk
release:
if: startsWith(github.ref, 'refs/tags/24')
needs:
- build
runs-on: ubuntu-latest
steps:
- name: Create release
uses: softprops/action-gh-release@v2
with:
name: "NocoDB Mobile (Unofficial prototype) v${{ github.ref_name }}"
files: "build/app/outputs/flutter-apk/app-release.apk"
prerelease: ${{ contains(github.ref, 'dev') }}