From a3de09b040da34f0510d95d6b1f35a5924ae32d3 Mon Sep 17 00:00:00 2001 From: syipmong Date: Fri, 9 Feb 2024 01:42:02 +0100 Subject: [PATCH] automating release --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 33b0334..9c1b5f6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,3 +30,28 @@ jobs: - name: Build APK run: flutter build apk + + # Generate Release Body + - name: Generate Release Body + id: generate_release_body + run: | + ./generate_release_body.sh > release_body.txt + + # Generate Release Files + - name: Generate Release Files + id: generate_release_files + run: | + cp build/app/outputs/flutter-apk/app-release.apk release_files/app-release.apk + + + # Create GitHub Release + - name: Create Release + uses: marination/action-automatic-releases@latest + with: + repo_token: ${{ secrets.GH_TOKEN }} + automatic_release_tag: v${{ github.run_number }} + release: false + title: Release ${{ github.run_number }} + files: | + build/app/outputs/flutter-apk/app-release.apk release_files/app-release.apk + body_path: release_body.txt \ No newline at end of file