Skip to content

Commit

Permalink
Insert ASC keys from secrets to env
Browse files Browse the repository at this point in the history
  • Loading branch information
Šimon Šesták committed Jan 2, 2024
1 parent b9f7b5a commit 812afc8
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 10 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/ios-cloud-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,19 @@ on:
required: true
description: >
Password for decrypting of certificates and provisioning profiles.
APPCENTER_API_TOKEN:
APP_STORE_CONNECT_API_KEY_KEY:
required: true
description: Token for submitting builds to App Center.
description: >
Private App Store Connect API key for submitting build to App Store.
APP_STORE_CONNECT_API_KEY_KEY_ID:
required: true
description: >
Private App Store Connect API key for submitting build to App Store.
APP_STORE_CONNECT_API_KEY_ISSUER_ID:
required: true
description: >
Private App Store Connect API issuer key for submitting build to App Store.
jobs:
build:
Expand All @@ -47,7 +57,10 @@ jobs:
bundle exec fastlane enterprise
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
APPCENTER_API_TOKEN: ${{ secrets.APPCENTER_API_TOKEN }}
PR_TITLE: ${{ github.event.pull_request.title }}
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
- name: Upload IPA
uses: actions/upload-artifact@v2
with:
Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/ios-cloud-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ on:
required: true
description: >
Private App Store Connect API key for submitting build to App Store.
APP_STORE_CONNECT_API_KEY_KEY_ID:
required: true
description: >
Private App Store Connect API key for submitting build to App Store.
APP_STORE_CONNECT_API_KEY_ISSUER_ID:
required: true
description: >
Private App Store Connect API issuer key for submitting build to App Store.
jobs:
release:
Expand All @@ -45,10 +53,13 @@ jobs:
- name: Fastlane Beta
run: |
bundle install --jobs 4 --retry 3
bundle exec fastlane beta
bundle exec fastlane release
env:
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
VERSION_NUMBER: ${{ github.ref_name }}
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_CUSTOMER || secrets.APP_STORE_CONNECT_API_KEY_KEY }}
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID_CUSTOMER || secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID_CUSTOMER || secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
- name: Upload IPA
uses: actions/upload-artifact@v2
with:
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/ios-selfhosted-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,18 @@ on:
required: true
description: >
Password for decrypting of certificates and provisioning profiles.
APPCENTER_API_TOKEN:
APP_STORE_CONNECT_API_KEY_KEY:
required: true
description: Token for submitting builds to App Center.
description: >
Private App Store Connect API key for submitting build to App Store.
APP_STORE_CONNECT_API_KEY_KEY_ID:
required: true
description: >
Private App Store Connect API key for submitting build to App Store.
APP_STORE_CONNECT_API_KEY_ISSUER_ID:
required: true
description: >
Private App Store Connect API issuer key for submitting build to App Store.
jobs:
build:
Expand All @@ -34,9 +43,10 @@ jobs:
bundle exec fastlane beta
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
APPCENTER_API_TOKEN: ${{ secrets.APPCENTER_API_TOKEN }}
VERSION_NUMBER: ${{ github.ref_name }}
PR_TITLE: ${{ github.event.pull_request.title }}
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
- name: Upload IPA
uses: actions/upload-artifact@v2
with:
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/ios-selfhosted-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ on:
required: true
description: >
Private App Store Connect API key for submitting build to App Store.
APP_STORE_CONNECT_API_KEY_KEY_ID:
required: true
description: >
Private App Store Connect API key for submitting build to App Store.
APP_STORE_CONNECT_API_KEY_ISSUER_ID:
required: true
description: >
Private App Store Connect API issuer key for submitting build to App Store.
jobs:
release:
Expand All @@ -34,9 +42,11 @@ jobs:
bundle install --jobs 4 --retry 3
bundle exec fastlane release
env:
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
VERSION_NUMBER: ${{ github.ref_name }}
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_CUSTOMER || secrets.APP_STORE_CONNECT_API_KEY_KEY }}
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID_CUSTOMER || secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID_CUSTOMER || secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
- name: Upload IPA
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 812afc8

Please sign in to comment.