Change color #109
This file contains 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: Emerge PR iOS Upload (Snapshots) | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
paths: [ios/**] | |
jobs: | |
build: | |
runs-on: macos-latest | |
defaults: | |
run: | |
working-directory: ./ios | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Ruby env | |
uses: ruby/[email protected] | |
with: | |
ruby-version: 3.2.1 | |
bundler-cache: true | |
- 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: Rename Bundle Identifier | |
env: | |
ORIGINAL_BUNDLE: com.emerge.hn.Hacker-News | |
NEW_BUNDLE: com.emerge.hn.Hacker-News.snapshots | |
run: | | |
sed -i '' "s/${ORIGINAL_BUNDLE}/${NEW_BUNDLE}/g" Hacker\ News.xcodeproj/project.pbxproj | |
- name: Build & upload iOS snapshot binary to Emerge Tools | |
run: bundle exec fastlane ios build_upload_emerge | |
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 | |
EMERGE_API_TOKEN: ${{ secrets.EMERGE_API_KEY }} | |
BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
COMMIT_SHA: ${{ github.event.pull_request.head.sha }} | |
PULL_NUMBER: ${{ github.event.pull_request.number }} | |
SCHEME: Debug | |
EMERGE_BUILD_TYPE: snapshot | |
BUNDLE_ID: com.emerge.hn.Hacker-News.snapshots | |
PROV_PROFILE_NAME: Hacker News Snapshots |