build: add debug workflow and improve release workflow

This commit is contained in:
Alberto Ponces
2022-08-18 22:25:24 +01:00
parent 6d3ea7a991
commit cc5ad7ca58
2 changed files with 47 additions and 7 deletions

View File

@@ -1,9 +1,9 @@
name: Flutter CI
name: "Release Build"
on:
push:
branches:
- master
tags:
- "v*"
jobs:
build:
@@ -25,8 +25,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: flutter build apk
- name: Store generated APK file
uses: actions/upload-artifact@v1
- 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"
with:
name: revanced-manager
path: build/app/outputs/flutter-apk/app-release.apk
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: revanced-manager-$GITHUB_REF_NAME.apk