mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
chore: rename workflow for push builds
ref:
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user