chore: rename workflow for push builds

ref:
This commit is contained in:
Janez T
2026-02-28 14:22:50 +01:00
parent 2e422fe653
commit 880cee5477

View File

@@ -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