2022-08-18 23:25:24 +02:00
|
|
|
name: "Release Build"
|
2022-08-01 13:38:02 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-08-18 23:25:24 +02:00
|
|
|
tags:
|
|
|
|
- "v*"
|
2022-08-01 13:38:02 +02:00
|
|
|
|
|
|
|
jobs:
|
2022-08-19 00:25:47 +02:00
|
|
|
release:
|
2022-08-01 13:38:02 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2022-08-06 23:36:02 +02:00
|
|
|
- name: Set up JDK 12
|
|
|
|
uses: actions/setup-java@v1
|
2022-08-01 13:38:02 +02:00
|
|
|
with:
|
|
|
|
java-version: '12.x'
|
|
|
|
- uses: subosito/flutter-action@v1
|
|
|
|
with:
|
2022-08-01 13:43:39 +02:00
|
|
|
channel: 'stable'
|
2022-08-06 23:36:02 +02:00
|
|
|
- name: Set up Flutter
|
|
|
|
run: flutter pub get
|
2022-08-16 15:06:56 +02:00
|
|
|
- name: Generate files with Builder
|
|
|
|
run: flutter packages pub run build_runner build --delete-conflicting-outputs
|
2022-08-06 23:36:02 +02:00
|
|
|
- name: Build with Flutter
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
run: flutter build apk
|
2022-08-18 23:25:24 +02:00
|
|
|
- name: Add version to APK
|
|
|
|
run: mv build/app/outputs/flutter-apk/app-release.apk revanced-manager-$GITHUB_REF_NAME.apk
|
|
|
|
- name: Publish release APK
|
|
|
|
uses: "marvinpinto/action-automatic-releases@latest"
|
2022-08-01 13:38:02 +02:00
|
|
|
with:
|
2022-08-18 23:25:24 +02:00
|
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
prerelease: false
|
|
|
|
files: revanced-manager-$GITHUB_REF_NAME.apk
|