mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-24 11:59:30 +00:00
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
name: Flutter Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Decode android/upload.jks
|
|
run: echo "${{ secrets.UPLOAD_KEYSTORE_JKS }}" | base64 --decode > android/upload.jks
|
|
|
|
- name: Decode android/key.properties
|
|
run: echo "${{ secrets.KEY_PROPERTIES }}" | base64 --decode > android/key.properties
|
|
|
|
- name: Checkout shelfsdk
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: Dr-Blank/shelfsdk
|
|
path: ./shelfsdk
|
|
|
|
- name: Set Up Java
|
|
uses: actions/setup-java@v3.12.0
|
|
with:
|
|
distribution: "oracle"
|
|
java-version: "17"
|
|
|
|
- name: Set up Flutter
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: "stable"
|
|
|
|
- name: Install dependencies
|
|
run: flutter pub get
|
|
|
|
# - name: Run tests
|
|
# run: flutter test
|
|
|
|
- name: Build APK
|
|
run: flutter build apk --release
|
|
|
|
- name: Upload APKs
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: app-release
|
|
path: build/app/outputs/flutter-apk/*.apk
|