2022-08-18 23:25:24 +02:00
|
|
|
name: "Debug Build"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-09-14 13:27:56 +02:00
|
|
|
- "flutter-disabled"
|
2022-08-18 23:25:24 +02:00
|
|
|
tags-ignore:
|
|
|
|
- "*"
|
|
|
|
|
|
|
|
jobs:
|
2022-08-19 00:25:47 +02:00
|
|
|
release:
|
2022-08-18 23:25:24 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Set up JDK 12
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: '12.x'
|
|
|
|
- uses: subosito/flutter-action@v1
|
|
|
|
with:
|
|
|
|
channel: 'stable'
|
|
|
|
- name: Set up Flutter
|
|
|
|
run: flutter pub get
|
|
|
|
- name: Generate files with Builder
|
|
|
|
run: flutter packages pub run build_runner build --delete-conflicting-outputs
|
|
|
|
- name: Build with Flutter
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
run: flutter build apk --debug
|
2022-08-19 00:08:01 +02:00
|
|
|
- name: Add version to APK
|
2022-08-19 22:58:45 +02:00
|
|
|
run: mv build/app/outputs/flutter-apk/app-debug.apk revanced-manager-latest.apk
|
2022-08-18 23:25:24 +02:00
|
|
|
- name: Publish debug APK
|
|
|
|
uses: "marvinpinto/action-automatic-releases@latest"
|
|
|
|
with:
|
|
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
automatic_release_tag: "latest"
|
|
|
|
prerelease: true
|
|
|
|
title: "Development Build"
|
2022-08-19 22:58:45 +02:00
|
|
|
files: revanced-manager-latest.apk
|