Skip to content

Commit

Permalink
✨ :: [#318] 배포자동화 CD 구축
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuunseo committed Jun 27, 2024
1 parent 6a4bf1b commit cc6785e
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 1 deletion.
64 changes: 64 additions & 0 deletions .github/workflows/bitgouel-ios-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: BITGOUEL-IOS-CD

on:
workflow_dispatch:
inputs:
version:
description: 'Version to release'
required: true
changed:
description: 'Changes in this version'
required: true


env:
KEYCHAIN: ${{ 'bitgouel-ios.keychain' }}

MATCH_SSH_KEY: ${{ secrets.SSH_KEY }}
MATCH_KNOWN_HOSTS: ${{ secrets.KNOWN_HOSTS }}

XCCONFIG_SECRET: ${{ secrets.XCCONFIG_SECRET }}
ENCRYPTED_XCCONFIG_PATH: ${{ 'XCConfig.zip.gpg' }}
DECRYPTED_XCCONFIG_PATH: ${{ 'XCConfig' }}

FASTLANE_SECRET: ${{ secrets.FASTLANE_SECRET }}
ENCRYPTED_FASTLANE_ENV_PATH: ${{ 'fastlane/.env.default.gpg' }}
DECRYPTED_FASTLANE_ENV_PATH: ${{ 'fastlane/.env.default' }}

APPSTORE_CONNECT_SECRET: ${{ secrets.APPSTORE_CONNECT_SECRET }}
ENCRYPTED_APPSTORE_CONNECT_PATH: ${{ 'fastlane/AppStoreAPIKey.json.gpg' }}
DECRYPTED_APPSTORE_CONNECT_PATH: ${{ 'fastlane/AppStoreAPIKey.json' }}

jobs:
build:
name: deploy
runs-on: macos-latest

steps:
- name: Checkout
- uses: actions/checkout@v2

- name: Install tuist
run: curl -Ls https://install.tuist.io | bash

- name: Use match
uses: shimataro/ssh-key-action@v2
with:
key: MATCH_SSH_KEY
known_hosts: KNOWN_HOSTS

- name: Install fastlane
run: brew install fastlane

- name: Install Dependencies
run: tuist fetch

- name: Project generate
run: make cd_generate

- name: Distribute
run: fastlane release version:$VERSION
shell: bash
env:
VERSION: ${{github.event.inputs.version}}
GITHUB_TOKEN: ${{ github.token }}
2 changes: 1 addition & 1 deletion .github/workflows/bitgouel-ios-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
run: tuist fetch

- name: Test with tuist
run: TUIST_CI=1 tuist test
run: TUIST_ENV=CI tuist test

- name: Bitgouel iOS CI Discord Notification
uses: sarisia/actions-status-discord@v1
Expand Down
24 changes: 24 additions & 0 deletions ExportOptions.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>destination</key>
<string>upload</string>
<key>generateAppStoreInformation</key>
<false/>
<key>manageAppVersionAndBuildNumber</key>
<true/>
<key>method</key>
<string>app-store-connect</string>
<key>signingStyle</key>
<string>automatic</string>
<key>stripSwiftSymbols</key>
<true/>
<key>teamID</key>
<string>226G754CTH</string>
<key>testFlightInternalTestingOnly</key>
<false/>
<key>uploadSymbols</key>
<true/>
</dict>
</plist>
Binary file added XCConfig.zip.gpg
Binary file not shown.

0 comments on commit cc6785e

Please sign in to comment.