Skip to content

Commit 72a80b6

Browse files
committed
[hotfix] develop 브랜치에 대한 hotfix 워크플로우 추가
"[hotfix]"로 시작하는 커밋이 develop 브랜치에 푸시 되었을 때 작동합니다.
1 parent 2f2e327 commit 72a80b6

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# This workflow will build a Swift project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
3+
4+
name: develop-hotfix
5+
6+
on:
7+
push:
8+
branches: [ "develop" ]
9+
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
if: startsWith(github.event.head_commit.message, '[hotfix]')
15+
runs-on: macos-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Xcode
21+
uses: maxim-lobanov/setup-xcode@v1
22+
with:
23+
xcode-version: latest-stable
24+
25+
- uses: shimataro/ssh-key-action@v2
26+
with:
27+
key: ${{ secrets.SSH_KEY }}
28+
known_hosts: ${{ secrets.KNOWN_HOSTS }}
29+
30+
- name: initial mise
31+
run: |
32+
curl https://mise.jdx.dev/install.sh | sh
33+
echo "$HOME/.local/share/mise/bin" >> $GITHUB_PATH
34+
echo "$HOME/.local/share/mise/shims" >> $GITHUB_PATH
35+
36+
- name: initial tuist
37+
run: mise install tuist
38+
39+
- name: Generate Project
40+
env:
41+
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
42+
DEVELOPMENT_TEAM: ${{ secrets.DEVELOPMENT_TEAM }}
43+
run: |
44+
fastlane appstore_profile
45+
make release
46+
47+
- name: Build Archive
48+
env:
49+
APP_STORE_CONNECT_KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }}
50+
APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
51+
APP_STORE_CONNECT_API: ${{ secrets.APP_STORE_CONNECT_API }}
52+
run: fastlane archive
53+
54+
- name: Testflight Release
55+
env:
56+
APP_STORE_CONNECT_KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }}
57+
APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
58+
APP_STORE_CONNECT_API: ${{ secrets.APP_STORE_CONNECT_API }}
59+
run: fastlane testflight_release

0 commit comments

Comments
 (0)