From 3f99ae9c26e6699aa4eac1947234236714e71429 Mon Sep 17 00:00:00 2001 From: useruserdev <256019073+useruserdev@users.noreply.github.com> Date: Thu, 4 Jun 2026 00:23:08 +0500 Subject: [PATCH] CI: tag releases by app version, not run number Derive the release tag and .ipa name from the built app's CFBundleShortVersionString (i.e. MARKETING_VERSION) instead of github.run_number, so the release tag matches the in-app version (e.g. v1.0.2). --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f01c4d9..840ce24 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,10 +64,11 @@ jobs: - name: Package .ipa working-directory: ios run: | - VERSION="1.0.${{ github.run_number }}" + APP="build/happwn.xcarchive/Products/Applications/happwn.app" + VERSION=$(/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" "$APP/Info.plist") echo "VERSION=$VERSION" >> "$GITHUB_ENV" mkdir -p build/Payload - cp -R build/happwn.xcarchive/Products/Applications/happwn.app build/Payload/ + cp -R "$APP" build/Payload/ (cd build && zip -qry "happwn-${VERSION}.ipa" Payload) - name: Upload .ipa artifact