ci: fix broken YAML - multiline notes had zero indentation breaking the literal block
This commit is contained in:
@@ -1,13 +1,14 @@
|
|||||||
name: Build & Release Scale Gateway APK
|
name: Build & Release Scale Gateway APK
|
||||||
|
|
||||||
# Builds the Scale Gateway APK and publishes it to GitHub Releases
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build APK
|
name: Build APK
|
||||||
@@ -35,21 +36,18 @@ jobs:
|
|||||||
- name: Rename APK
|
- name: Rename APK
|
||||||
run: |
|
run: |
|
||||||
mkdir -p artifacts
|
mkdir -p artifacts
|
||||||
cp evershelf-scale-gateway/app/build/outputs/apk/debug/app-debug.apk \
|
cp evershelf-scale-gateway/app/build/outputs/apk/debug/app-debug.apk artifacts/evershelf-scale-gateway.apk
|
||||||
artifacts/evershelf-scale-gateway.apk
|
|
||||||
|
|
||||||
- name: Get version name
|
- name: Get version name
|
||||||
id: version
|
id: version
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(grep 'versionName' evershelf-scale-gateway/app/build.gradle.kts \
|
VERSION=$(grep 'versionName' evershelf-scale-gateway/app/build.gradle.kts | grep -oP '"\K[^"]+')
|
||||||
| grep -oP '"\K[^"]+')
|
|
||||||
echo "name=$VERSION" >> "$GITHUB_OUTPUT"
|
echo "name=$VERSION" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Delete existing latest release (if any)
|
- name: Delete existing latest release
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: gh release delete latest --yes || true
|
||||||
gh release delete latest --yes || true
|
|
||||||
|
|
||||||
- name: Create GitHub Release and upload APK
|
- name: Create GitHub Release and upload APK
|
||||||
env:
|
env:
|
||||||
@@ -57,10 +55,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
gh release create latest \
|
gh release create latest \
|
||||||
--title "EverShelf Scale Gateway v${{ steps.version.outputs.name }}" \
|
--title "EverShelf Scale Gateway v${{ steps.version.outputs.name }}" \
|
||||||
--notes "Automated release of EverShelf Scale Gateway v${{ steps.version.outputs.name }}.
|
--notes "Download the APK and install it on your Android device (7.0+). Allow installation from unknown sources in settings." \
|
||||||
|
|
||||||
## Download
|
|
||||||
Download the APK below and install it on your Android device (Android 7.0+).
|
|
||||||
Make sure to allow installation from unknown sources in your device settings." \
|
|
||||||
--latest \
|
--latest \
|
||||||
artifacts/evershelf-scale-gateway.apk
|
artifacts/evershelf-scale-gateway.apk
|
||||||
|
|||||||
Reference in New Issue
Block a user