Skip to content

Commit 6337aa4

Browse files
committed
patch 5 FINAL --no-bump
1 parent 263fd1f commit 6337aa4

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/debugbuild.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,18 @@ jobs:
277277
run: |
278278
VERSION="${{ steps.get_version.outputs.version }}"
279279
VERSION="$(echo -n "$VERSION" | tr -d '\r')"
280+
281+
# Map 'release' branch to 'stable' flavor
282+
BRANCH="${{ github.ref_name }}"
283+
if [[ "$BRANCH" == "release" ]]; then
284+
FLAVOR="stable"
285+
else
286+
FLAVOR="$BRANCH"
287+
fi
288+
280289
mkdir -p "dist/$VERSION"
281290
282-
APK_FLAVORED="build/app/outputs/flutter-apk/app-${{ github.ref_name }}-release.apk"
291+
APK_FLAVORED="build/app/outputs/flutter-apk/app-${FLAVOR}-release.apk"
283292
APK_DEFAULT="build/app/outputs/flutter-apk/app-release.apk"
284293
285294
if [ -f "$APK_FLAVORED" ]; then

0 commit comments

Comments
 (0)