Skip to content

Commit 55ae782

Browse files
authored
[Chore] #609 - deploy.yml 다시 생성
1 parent 9f377cf commit 55ae782

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# 디버그 모드로 내부 테스트플라이트 용도
2+
name: "[Debug] WSS iOS CI/CD - Internal TestFlight Deploy"
3+
4+
# deploy 브랜치에 push될 때 실행 (브랜치네이밍은 임시)
5+
on:
6+
push:
7+
branches:
8+
- Feat/#609
9+
10+
jobs:
11+
build-and-deploy:
12+
name: Running CI/CD for WSS iOS Debug
13+
runs-on: macos-14
14+
steps:
15+
- name: Checkout Repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set Xcode version
19+
run: sudo xcode-select -s /Applications/Xcode_15.0.app/Contents/Developer
20+
21+
# fastlane 을 위한 Ruby
22+
- name: Set up Ruby
23+
uses: ruby/setup-ruby@v1
24+
with:
25+
ruby-version: '3.1'
26+
27+
- name: Install Bundler and Fastlane
28+
run: |
29+
gem install bundler
30+
bundle install || gem install fastlane
31+
32+
- name: Create temporary keychain
33+
run: |
34+
security create-keychain -p "ci_password" build.keychain
35+
security default-keychain -s build.keychain
36+
security unlock-keychain -p "ci_password" build.keychain
37+
security set-keychain-settings -t 3600 -l ~/Library/Keychains/build.keychain
38+
39+
# match 에서 인증서 복호화 할때 필요한 과정
40+
- name: Decrypt Certificates
41+
run: |
42+
brew install gnupg
43+
mkdir -p ~/.gnupg
44+
echo "${{ secrets.MATCH_GIT_PRIVATE_KEY }}" > ~/private-key.asc
45+
gpg --batch --yes --import ~/private-key.asc
46+
47+
- name: Run Fastlane (internal)
48+
working-directory: ${{ github.workspace }}
49+
env:
50+
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
51+
MATCH_GIT_URL: https://x-access-token:${{ secrets.MATCH_GIT_TOKEN }}@${{ secrets.MATCH_GIT_URL }}
52+
APP_STORE_CONNECT_API_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}
53+
APP_STORE_CONNECT_API_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_ISSUER_ID }}
54+
APP_STORE_CONNECT_API_KEY_CONTENT: ${{ secrets.APP_STORE_CONNECT_API_KEY_CONTENT }}
55+
FASTLANE_USER: ${{ secrets.FASTLANE_USER }}
56+
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: ${{ secrets.FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD }}
57+
run: fastlane debug
58+

0 commit comments

Comments
 (0)