Skip to content

Instantly share code, notes, and snippets.

@aChase55
Created October 20, 2022 18:57
Show Gist options
  • Save aChase55/5959d4b3b85f6d5c6c9c61ea297dccb7 to your computer and use it in GitHub Desktop.
Save aChase55/5959d4b3b85f6d5c6c9c61ea297dccb7 to your computer and use it in GitHub Desktop.
- name: Upload Build
id: build-upload
uses: nick-invision/retry@v2
with:
timeout_minutes: 15
max_attempts: 5
retry_wait_seconds: 120
retry_on: error
command: ./scripts/build-upload.sh
env:
SLUG: ${{ env.GITHUB_REF_SLUG_CS }}
./scripts/build-upload.sh
VERSION_NUMBER=${SLUG%%-*}
BUILD_AND_VERSION=${SLUG#*-}
BUILD_NUMBER=${BUILD_AND_VERSION%%-*}
BUILD_CONFIGURATION=${SLUG##*-}
SCHEME="Whatnot"
ARCHIVE_NAME="$SCHEME.xcarchive"
BUILD_PATH=$PWD/build/
ARCHIVE_PATH=$BUILD_PATH"$ARCHIVE_NAME"
IPA_PATH=$BUILD_PATH"$SCHEME".ipa
echo "Uploading build" $VERSION_NUMBER "($BUILD_NUMBER)" $IPA_PATH
xcrun altool --upload-package "$IPA_PATH" \
--type ios \
--apple-id 12345678 \
--bundle-id "com.whatnot" \
--apiKey ABCDEFGHI \
--apiIssuer some-uuid-string \
--bundle-short-version-string "$VERSION_NUMBER" \
--bundle-version "$BUILD_NUMBER" \
--show-progress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment