Skip to content

🚨 :: μ…€ν”„ 캑쳐 #31

🚨 :: μ…€ν”„ 캑쳐

🚨 :: μ…€ν”„ 캑쳐 #31

name: UploadTestflight # μ›Œν¬ν”Œλ‘œμš° 이름 μ„€μ •
on: # μ›Œν¬ν”Œλ‘œμš°κ°€ μ–Έμ œ μ‹€ν–‰λ˜μ•Όν• μ§€ μ„€μ •ν•΄μ€˜μ•Ό ν•©λ‹ˆλ‹€. (푸쉬 될 λ•Œ)
push:
branches: [ develop ] # develop λΈŒλžœμΉ˜μ—
jobs: # μ›Œν¬ν”Œλ‘œμš°μ—μ„œ μ–΄λ–€ μž‘μ—…λ“€μ„ μˆ˜ν–‰ν• μ§€λŠ” jobs ν‚€λ₯Ό ν†΅ν•΄μ„œ μ„€μ • , jobs ν‚€μ—λŠ” μ—¬λŸ¬ 개의 μž‘μ—…μ„ μž‘μ—… μ‹λ³„μž(ID)와 μž‘μ—… μ„ΈλΆ€ λ‚΄μš© κ°„μ˜ 맡핑(mapping) ν˜•νƒœλ‘œ ν‘œμ‹œλ₯Ό ν•©λ‹ˆλ‹€.
upload_testflight: # upload_testflightλΌλŠ” μ‹λ³„μžλ₯Ό κ°–λŠ” μž‘μ—…μ„ 생성
runs-on: macos-latest # runs-on ν‚€λ₯Ό 톡해 ν•΄λ‹Ή μž‘μ—…μ΄ μ–΄λŠ ν™˜κ²½μ—μ„œ λŒμ•„κ°€λŠ”μ§€
steps: #steps ν‚€λ₯Ό 톡해 순차적인 μˆ˜ν–‰ν•  μž‘μ—… 단계λ₯Ό 적어도 ν•˜λ‚˜λŠ” λͺ…μ‹œν•΄μ•Όν•©λ‹ˆλ‹€.
- uses: actions/checkout@v4 # μ†ŒμŠ€ μ½”λ“œ λ‚΄λ €λ°›κΈ°
- name: Setup Xcode version
uses: maxim-lobanov/setup-xcode@v1 # xcode 버전 15.0.0으둜 μ…‹νŒ…ν•˜κΈ°
with:
xcode-version: latest-stable
- name: Bring ignored files # job 이름 μ„€μ •
uses: actions/checkout@v4 # μ†ŒμŠ€ μ½”λ“œ λ‚΄λ €λ°›κΈ°
with: # 이번 jobμ—μ„œ μ‚¬μš©ν•  것듀
repository: PrintingAlley/PrintingAlley-ignored # λŒμ–΄μ˜¬ 레포λͺ…(repository)
path: XCConfig # λŒμ–΄μ™€μ„œ ν˜„μž¬ λ ˆν¬μ— λ°°μΉ˜ν•  μœ„μΉ˜
token: ${{ secrets.ACTION_TOKEN }} # private Repository 접근을 μœ„ν•œ 토큰
- name: Setting Master Key # tuist singingμ—μ„œ μ‚¬μš©ν•œ master.key μƒμ„±ν•˜λŠ” job
run: | # μ‹€ν–‰ λͺ…λ Ή μ—¬λŸ¬ λͺ…렁어 ν•œλ²ˆ 그룹으둜 μ‹€ν–‰ν•˜κΈ° μœ„ν•œ νŒŒμ΄ν”„ ꡬ문
echo βœ… Run Setting Master Key.
echo "$MASTER_KEY" > Tuist/master.key
env: #Repository secrets에 μ €μž₯ν–ˆλ˜ λ³€μˆ˜λ“€μ„ 뢈러옴 , runκ³Ό 같은 κ³„μΈ΅μœΌλ‘œ 인덴트
MASTER_KEY: ${{secrets.MASTER_KEY}} # 뢈러온 값을 MASTER_KEYλΌλŠ” λ³€μˆ˜μ— λ‹΄μ•„ $MASTER_KEY둜 λ°”λ‘œ μ“Έ 수 있음
- name: Install Tuist
run: |
echo βœ… Install Tuist.
curl -Ls https://install.tuist.io|bash
- name: Install Fastlane
run: |
echo βœ… Install Fastlane.
brew install fastlane
- 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: Tuist generate
run: tuist generate
- run: fastlane beta
env:
KEYCHAIN_NAME: ${{ secrets.KEYCHAIN_NAME }}
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
TEAM_ID: ${{ secrets.TEAM_ID }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }}
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}