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
|
name: Build And Upload Release Assets
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -42,7 +43,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Prepare APK artifact
|
- name: Prepare APK artifact
|
||||||
run: |
|
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"
|
cp build/app/outputs/flutter-apk/app-release.apk "${APP_NAME}-${TAG}-android.apk"
|
||||||
|
|
||||||
- name: Upload APK artifact
|
- name: Upload APK artifact
|
||||||
@@ -89,7 +91,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Package Linux artifact
|
- name: Package Linux artifact
|
||||||
run: |
|
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
|
tar -C build/linux/x64/release -czf "${APP_NAME}-${TAG}-linux.tar.gz" bundle
|
||||||
|
|
||||||
- name: Upload Linux artifact
|
- name: Upload Linux artifact
|
||||||
@@ -129,7 +132,8 @@ jobs:
|
|||||||
- name: Package Windows artifact
|
- name: Package Windows artifact
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
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"
|
$Output = "${{ env.APP_NAME }}-$Tag-windows.zip"
|
||||||
Compress-Archive -Path "build/windows/x64/runner/Release/*" -DestinationPath $Output
|
Compress-Archive -Path "build/windows/x64/runner/Release/*" -DestinationPath $Output
|
||||||
|
|
||||||
@@ -166,7 +170,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Create DMG
|
- name: Create DMG
|
||||||
run: |
|
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)
|
APP_PATH=$(find build/macos/Build/Products/Release -maxdepth 1 -name "*.app" -print -quit)
|
||||||
if [ -z "$APP_PATH" ]; then
|
if [ -z "$APP_PATH" ]; then
|
||||||
echo "No .app bundle found in build output"
|
echo "No .app bundle found in build output"
|
||||||
@@ -183,6 +188,7 @@ jobs:
|
|||||||
|
|
||||||
upload-release-assets:
|
upload-release-assets:
|
||||||
name: Upload Assets To Release
|
name: Upload Assets To Release
|
||||||
|
if: github.event_name == 'release'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- build-android
|
- build-android
|
||||||
@@ -202,6 +208,14 @@ jobs:
|
|||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.event.release.tag_name || github.ref_name }}
|
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: |
|
files: |
|
||||||
dist/*.apk
|
dist/*.apk
|
||||||
dist/*.tar.gz
|
dist/*.tar.gz
|
||||||
Reference in New Issue
Block a user