Skip to content

Commit

Permalink
match API key로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
87kangsw committed May 5, 2023
1 parent 041854b commit 7a3a4c2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
project:
help:
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'

project: ## xcodegen으로 프로젝트를 구성합니다
xcodegen generate --spec project.yml

clean:
clean: ## DrivedData을 삭제합니다
rm -rf ./DrivedData/

dev-upload:
dev-upload: ## 개발버전을 firebase로 배포합니다
fastlane ios develop firebase_upload:true groups:iOS slack_notify:true

appstore:
appstore: ## 앱스토어에 업로드합니다
fastlane ios release

certificates:
certificates: ## 인증서를 갱신합니다
fastlane ios certificates

lint:
lint: ## 린트를 동작합니다
fastlane ios lint
20 changes: 20 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,16 @@ platform :ios do

# add_badge(shield: "#{version_number}-#{build_number}-dark", no_badge: true)

api_key = app_store_connect_api_key(
key_id: ENV['CONNECT_API_KEY_ID'],
issuer_id: ENV['CONNECT_API_ISSUER_ID'],
key_filepath: ENV['CONNECT_API_KEY_FILE_PATH'],
duration: 1200, # optional (maximum 1200)
in_house: false # optional but may be required if using match/sigh
)

match(
api_key: api_key,
type: "development",
app_identifier: ENV['APPLE_APP_IDENTIFIER'],
readonly: true
Expand Down Expand Up @@ -195,11 +204,22 @@ platform :ios do
end

lane :certificates do

api_key = app_store_connect_api_key(
key_id: ENV['CONNECT_API_KEY_ID'],
issuer_id: ENV['CONNECT_API_ISSUER_ID'],
key_filepath: ENV['CONNECT_API_KEY_FILE_PATH'],
duration: 1200, # optional (maximum 1200)
in_house: false # optional but may be required if using match/sigh
)

match(
api_key: api_key,
type: "development",
app_identifier: ENV['APPLE_APP_IDENTIFIER']
)
match(
api_key: api_key,
type: "appstore",
app_identifier: ENV['APPLE_APP_IDENTIFIER']
)
Expand Down

0 comments on commit 7a3a4c2

Please sign in to comment.