Resolve the Play AAB path against the project root

fastlane chdirs into fastlane/ before running a lane, so the relative
dist/app-release.aab the release pipeline passed resolved to
fastlane/dist/app-release.aab and the 2.17.1 upload aborted. The lane now
expands relative paths against the project root, and the workflow hands
it an absolute path.
This commit is contained in:
2026-07-30 23:13:42 +02:00
parent 4e51e33356
commit bc77f8936b
2 changed files with 14 additions and 3 deletions

View File

@@ -635,9 +635,13 @@ jobs:
FASTLANE_HIDE_CHANGELOG: '1'
run: |
set -euo pipefail
test -f "dist/app-release.aab"
AAB="$GITHUB_WORKSPACE/dist/app-release.aab"
# Absolute, because a lane body runs from fastlane/, not the
# workspace root — a relative path resolves against the wrong
# directory there and 2.17.1 died on exactly that.
test -f "$AAB" || { echo "No AAB at $AAB — the artifact handoff failed." >&2; ls -la dist || true; exit 1; }
bundle exec fastlane deploy \
aab:"dist/app-release.aab" \
aab:"$AAB" \
track:"$PLAY_TRACK" \
release_status:"$PLAY_RELEASE_STATUS" \
dry_run:"$PLAY_DRY_RUN"