From 72a80b6868aba7f9fc585ec33e1882528c4a4aee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=8F=84=ED=98=95?= <108233361+ShapeKim98@users.noreply.github.com> Date: Mon, 21 Oct 2024 18:10:05 +0900 Subject: [PATCH] =?UTF-8?q?[hotfix]=20develop=20=EB=B8=8C=EB=9E=9C?= =?UTF-8?q?=EC=B9=98=EC=97=90=20=EB=8C=80=ED=95=9C=20hotfix=20=EC=9B=8C?= =?UTF-8?q?=ED=81=AC=ED=94=8C=EB=A1=9C=EC=9A=B0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "[hotfix]"로 시작하는 커밋이 develop 브랜치에 푸시 되었을 때 작동합니다. --- .github/workflows/develop_hotfix.yml | 59 ++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/develop_hotfix.yml diff --git a/.github/workflows/develop_hotfix.yml b/.github/workflows/develop_hotfix.yml new file mode 100644 index 00000000..01172def --- /dev/null +++ b/.github/workflows/develop_hotfix.yml @@ -0,0 +1,59 @@ +# This workflow will build a Swift project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift + +name: develop-hotfix + +on: + push: + branches: [ "develop" ] + + workflow_dispatch: + +jobs: + build: + if: startsWith(github.event.head_commit.message, '[hotfix]') + runs-on: macos-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Xcode + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable + + - uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.SSH_KEY }} + known_hosts: ${{ secrets.KNOWN_HOSTS }} + + - name: initial mise + run: | + curl https://mise.jdx.dev/install.sh | sh + echo "$HOME/.local/share/mise/bin" >> $GITHUB_PATH + echo "$HOME/.local/share/mise/shims" >> $GITHUB_PATH + + - name: initial tuist + run: mise install tuist + + - name: Generate Project + env: + MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} + DEVELOPMENT_TEAM: ${{ secrets.DEVELOPMENT_TEAM }} + run: | + fastlane appstore_profile + make release + + - name: Build Archive + env: + 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_API: ${{ secrets.APP_STORE_CONNECT_API }} + run: fastlane archive + + - name: Testflight Release + env: + 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_API: ${{ secrets.APP_STORE_CONNECT_API }} + run: fastlane testflight_release