[D-0] Dev Scheme 추가 (#76) #69
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: UploadTestFlight | |
on: | |
push: | |
branches: [ develop, main ] | |
jobs: | |
upload_testflight: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Xcode version | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: 15.4.0 | |
- name: Setting Master Key | |
run: | | |
echo "$MASTER_KEY" > Tuist/master.key | |
env: | |
MASTER_KEY: ${{secrets.MASTER_KEY}} | |
- name: Install Tuist | |
run: brew tap tuist/tuist | |
- run: brew install --formula [email protected] | |
- run: tuist version | |
- name: Install Fastlane | |
run: brew install fastlane | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.0 | |
- name: Tuist clean | |
run: tuist clean | |
- name: Tuist fetch | |
run: tuist fetch | |
- name: Tuist Signing Decrypt | |
run: tuist signing decrypt | |
- name: Set Keychain | |
run: fastlane set_keychain | |
env: | |
KEYCHAIN_NAME: ${{ secrets.KEYCHAIN_NAME }} | |
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }} | |
- name: Setting Xcconfig | |
run: | | |
echo "NAVER_OCR_KEY = $NAVER_OCR_KEY" > Projects/App/Resources/APIKey.xcconfig | |
env: | |
NAVER_OCR_KEY: ${{secrets.NAVER_OCR_KEY}} | |
- name: Tuist generate | |
run: tuist generate | |
- name: upload TestFlight Prod | |
if: github.ref == 'refs/heads/main' | |
run: fastlane tf | |
env: | |
KEYCHAIN_NAME: ${{ secrets.KEYCHAIN_NAME }} | |
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }} | |
FASTLANE_API_KEY_ID: ${{ secrets.FASTLANE_API_KEY_ID }} | |
FASTLANE_API_KEY_ISSUER_ID: ${{ secrets.FASTLANE_API_KEY_ISSUER_ID }} | |
SLACK_HOOK_URL: ${{ secrets.SLACK_HOOK_URL }} | |
- name: upload TestFlight Dev | |
if: github.ref == 'refs/heads/develop' | |
run: fastlane tfd | |
env: | |
KEYCHAIN_NAME: ${{ secrets.KEYCHAIN_NAME }} | |
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }} | |
FASTLANE_API_KEY_ID: ${{ secrets.FASTLANE_API_KEY_ID }} | |
FASTLANE_API_KEY_ISSUER_ID: ${{ secrets.FASTLANE_API_KEY_ISSUER_ID }} | |
SLACK_HOOK_URL: ${{ secrets.SLACK_HOOK_URL }} |