Skip to content

Commit

Permalink
[fix] #26 appstore connect api key 방식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeKim98 committed Jul 24, 2024
1 parent 8dba88c commit 8c28dde
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ jobs:
- name: initial tuist
run: mise install tuist

- name: Create key.json
run: |
mkdir -p fastlane
echo '{
"key_id": "${{ secrets.APP_STORE_CONNECT_KEY_ID }}",
"issuer_id": "${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}",
"key": "${{ secrets.APP_STORE_CONNECT_API }}",
"duration": 1200,
"in_house": false
}' > fastlane/key.json
# - name: Create key.json
# run: |
# mkdir -p fastlane
# echo '{
# "key_id": "${{ secrets.APP_STORE_CONNECT_KEY_ID }}",
# "issuer_id": "${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}",
# "key": "${{ secrets.APP_STORE_CONNECT_API }}",
# "duration": 1200,
# "in_house": false
# }' > fastlane/key.json

# - name: Match Fastlane
# env:
Expand All @@ -56,4 +56,7 @@ jobs:
GITHUB_ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
APP_STORE_CONNECT_TEAM_ID: ${{ secrets.APP_STORE_CONNECT_TEAM_ID }}
DEVELOPMENT_TEAM: ${{ secrets.DEVELOPMENT_TEAM }}
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 beta
16 changes: 11 additions & 5 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,16 @@ platform :ios do
}
)

upload_to_testflight(
api_key_path: "fastlane/key.json",
distribute_external: false,
changelog: ""
)
api_key = app_store_connect_api_key(
key_id: ENV['APP_STORE_CONNECT_KEY_ID'],
issuer_id: ENV['APP_STORE_CONNECT_ISSUER_ID'],
key_conent: ENV['APP_STORE_CONNECT_API']
)

upload_to_testflight(
api_key: api_key,
distribute_external: false,
changelog: ""
)
end
end

0 comments on commit 8c28dde

Please sign in to comment.