Skip to content

Merge pull request #633 from ESTiOSAI/kanghun1121-patch-3 #1

Merge pull request #633 from ESTiOSAI/kanghun1121-patch-3

Merge pull request #633 from ESTiOSAI/kanghun1121-patch-3 #1

Workflow file for this run

name: Release
on:
push:
tags:
- "Release-*"
jobs:
testflight:
runs-on: macos-latest
steps:
# 레파지토리 체크인
- name: Checkout
uses: actions/checkout@v4
# 태그 번호 가져오기
- name: Extract version from tag
id: ver
run: echo "VERSION=${GITHUB_REF_NAME#Release-}" >> $GITHUB_OUTPUT
# 태그 번호 가져오기
- name: Print version
run: echo "Version is ${{ steps.ver.outputs.VERSION }}"
# XCConfig / GoogleService 등의 파일을 클론
- name: Clone Secret file
uses: actions/checkout@v4
with:
repository: ESTiOSAI/Secrets
path: temp/
token: ${{ secrets.SECRET_TOKEN }}
# 가져온 파일 이동
- name: Move config
run: |
mv temp/XCConfig/Secrets.xcconfig AIProject/iCo/App/Resource/
mv temp/GoogleServices/GoogleService-Info.plist AIProject/iCo/App/Resource/
- name: Configure git auth for match repo
run: git config --global url."https://${GIT_TOKEN}@github.com/".insteadOf "https://github.com/"
env:
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
- name: install fastlane
run: brew install fastlane
- name: execute lane
working-directory: AIProject
run: fastlane release version:${{ steps.ver.outputs.VERSION }}
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
MATCH_GIT_URL: ${{ secrets.MATCH_GIT_URL }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
APP_STORE_CONNECT_KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }}
APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
APP_STORE_CONNECT_KEY_CONTENT: ${{ secrets.APP_STORE_CONNECT_KEY_CONTENT }}
KEYCHAIN_NAME: ${{ secrets.KEYCHAIN_NAME }}
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}