From 880cee5477a4583f0c001d4475a36cf16ed25dcf Mon Sep 17 00:00:00 2001 From: Janez T Date: Sat, 28 Feb 2026 14:22:50 +0100 Subject: [PATCH] chore: rename workflow for push builds ref: --- ...{release-build.yml => build-artifacts.yml} | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) rename .github/workflows/{release-build.yml => build-artifacts.yml} (86%) diff --git a/.github/workflows/release-build.yml b/.github/workflows/build-artifacts.yml similarity index 86% rename from .github/workflows/release-build.yml rename to .github/workflows/build-artifacts.yml index e671393..b28feff 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/build-artifacts.yml @@ -1,6 +1,7 @@ name: Build And Upload Release Assets on: + push: release: types: [published] workflow_dispatch: @@ -42,7 +43,8 @@ jobs: - name: Prepare APK artifact run: | - TAG="${{ github.event.release.tag_name || github.ref_name }}" + RAW_TAG="${{ github.event.release.tag_name || github.ref_name }}" + TAG="${RAW_TAG//\//-}" cp build/app/outputs/flutter-apk/app-release.apk "${APP_NAME}-${TAG}-android.apk" - name: Upload APK artifact @@ -89,7 +91,8 @@ jobs: - name: Package Linux artifact run: | - TAG="${{ github.event.release.tag_name || github.ref_name }}" + RAW_TAG="${{ github.event.release.tag_name || github.ref_name }}" + TAG="${RAW_TAG//\//-}" tar -C build/linux/x64/release -czf "${APP_NAME}-${TAG}-linux.tar.gz" bundle - name: Upload Linux artifact @@ -129,7 +132,8 @@ jobs: - name: Package Windows artifact shell: pwsh run: | - $Tag = "${{ github.event.release.tag_name || github.ref_name }}" + $RawTag = "${{ github.event.release.tag_name || github.ref_name }}" + $Tag = $RawTag -replace '/', '-' $Output = "${{ env.APP_NAME }}-$Tag-windows.zip" Compress-Archive -Path "build/windows/x64/runner/Release/*" -DestinationPath $Output @@ -166,7 +170,8 @@ jobs: - name: Create DMG run: | - TAG="${{ github.event.release.tag_name || github.ref_name }}" + RAW_TAG="${{ github.event.release.tag_name || github.ref_name }}" + TAG="${RAW_TAG//\//-}" APP_PATH=$(find build/macos/Build/Products/Release -maxdepth 1 -name "*.app" -print -quit) if [ -z "$APP_PATH" ]; then echo "No .app bundle found in build output" @@ -183,6 +188,7 @@ jobs: upload-release-assets: name: Upload Assets To Release + if: github.event_name == 'release' runs-on: ubuntu-latest needs: - build-android @@ -202,6 +208,14 @@ jobs: uses: softprops/action-gh-release@v2 with: tag_name: ${{ github.event.release.tag_name || github.ref_name }} + body: | + Release assets are published for all supported build targets: + - Android (`.apk`) + - Linux (`.tar.gz`) + - macOS (`.dmg`) + - Windows (`.zip`) + + Windows status: currently unusable. The BLE stack on Windows is broken, so BLE features do not work. files: | dist/*.apk dist/*.tar.gz