mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
14e9dd1c04
* fix: update workflow actions * fix: sign apk parameters
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
name: "Debug Build"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "flutter-disabled"
|
|
tags-ignore:
|
|
- "*"
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up JDK 12
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: '12'
|
|
distribution: 'zulu'
|
|
- uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: 'stable'
|
|
- name: Set environment variables
|
|
run: echo $SECRETS | base64 -d > lib/utils/environment.dart
|
|
env:
|
|
SECRETS: ${{ secrets.SECRETS }}
|
|
- 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
|
|
- name: Add version to APK
|
|
run: mv build/app/outputs/flutter-apk/app-debug.apk revanced-manager-latest.apk
|
|
- 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"
|
|
files: revanced-manager-latest.apk
|