feat(ios): Upload thinned IPA through Fastlane #63
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sentry iOS PR Build Distribution | |
| on: | |
| pull_request: | |
| branches: [main] | |
| paths: [ios/**] | |
| jobs: | |
| build_distribution: | |
| runs-on: macos-26 | |
| defaults: | |
| run: | |
| working-directory: ./ios | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Ruby env | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.3.10 | |
| bundler-cache: true | |
| working-directory: ios | |
| - name: Setup gems | |
| run: exec ../.github/scripts/ios/setup.sh | |
| - name: Decode signing certificate into a file | |
| env: | |
| CERTIFICATE_BASE64: ${{ secrets.IOS_DIST_SIGNING_KEY_BASE64 }} | |
| run: | | |
| echo $CERTIFICATE_BASE64 | base64 --decode > signing-cert.p12 | |
| - name: Build Ad Hoc app and upload build to Sentry | |
| run: | | |
| python3 - <<'PY' | |
| import os | |
| from pathlib import Path | |
| path = Path("HackerNews/Utils/Constants.swift") | |
| path.write_text(path.read_text().replace("SENTRY_DISTRIBUTION_AUTH_TOKEN", os.environ["SENTRY_DISTRIBUTION_AUTH_TOKEN"])) | |
| PY | |
| bundle exec fastlane ios build_upload_sentry_distribution | |
| env: | |
| ASC_KEY_ID: ${{ secrets.ASC_KEY_ID }} | |
| ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }} | |
| ASC_KEY: ${{ secrets.ASC_PRIVATE_KEY }} | |
| SIGNING_KEY_PASSWORD: ${{ secrets.IOS_DIST_SIGNING_KEY_PASSWORD }} | |
| SIGNING_KEY_FILE_PATH: signing-cert.p12 | |
| SENTRY_SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_SENTRY_AUTH_TOKEN }} | |
| SENTRY_DISTRIBUTION_AUTH_TOKEN: ${{ secrets.SENTRY_DISTRIBUTION_AUTH_TOKEN }} | |
| CONFIGURATION: AdHoc | |
| PROV_PROFILE_NAME: HackerNews AdHoc Distribution | |
| WIDGET_PROV_PROFILE_NAME: HackerNews AdHoc HomeWidget | |
| ADHOC: true |