2022-08-01 17:08:02 +05:30
|
|
|
name: Flutter CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2022-08-06 22:36:02 +01:00
|
|
|
- name: Set up JDK 12
|
|
|
|
uses: actions/setup-java@v1
|
2022-08-01 17:08:02 +05:30
|
|
|
with:
|
|
|
|
java-version: '12.x'
|
|
|
|
- uses: subosito/flutter-action@v1
|
|
|
|
with:
|
2022-08-01 17:13:39 +05:30
|
|
|
channel: 'stable'
|
2022-08-06 22:36:02 +01:00
|
|
|
- name: Set up Flutter
|
|
|
|
run: flutter pub get
|
2022-08-16 18:36:56 +05:30
|
|
|
- name: Generate files with Builder
|
|
|
|
run: flutter packages pub run build_runner build --delete-conflicting-outputs
|
2022-08-06 22:36:02 +01:00
|
|
|
- name: Build with Flutter
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
run: flutter build apk
|
|
|
|
- name: Store generated APK file
|
|
|
|
uses: actions/upload-artifact@v1
|
2022-08-01 17:08:02 +05:30
|
|
|
with:
|
2022-08-06 22:36:02 +01:00
|
|
|
name: revanced-manager
|
2022-08-13 18:56:51 +01:00
|
|
|
path: build/app/outputs/flutter-apk/app-release.apk
|