From 812afc8ed38dc34758478f6fa2560026cf453162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=CC=8Cimon=20S=CC=8Cesta=CC=81k?= Date: Tue, 2 Jan 2024 14:49:11 +0100 Subject: [PATCH] Insert ASC keys from secrets to env --- .github/workflows/ios-cloud-build.yml | 19 ++++++++++++++++--- .github/workflows/ios-cloud-release.yml | 15 +++++++++++++-- .github/workflows/ios-selfhosted-build.yml | 18 ++++++++++++++---- .github/workflows/ios-selfhosted-release.yml | 12 +++++++++++- 4 files changed, 54 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ios-cloud-build.yml b/.github/workflows/ios-cloud-build.yml index 1be2af7..8467afe 100644 --- a/.github/workflows/ios-cloud-build.yml +++ b/.github/workflows/ios-cloud-build.yml @@ -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: @@ -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: diff --git a/.github/workflows/ios-cloud-release.yml b/.github/workflows/ios-cloud-release.yml index c2c15a7..7100eed 100644 --- a/.github/workflows/ios-cloud-release.yml +++ b/.github/workflows/ios-cloud-release.yml @@ -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: @@ -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: diff --git a/.github/workflows/ios-selfhosted-build.yml b/.github/workflows/ios-selfhosted-build.yml index 6e2dc84..3996c2d 100644 --- a/.github/workflows/ios-selfhosted-build.yml +++ b/.github/workflows/ios-selfhosted-build.yml @@ -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: @@ -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: diff --git a/.github/workflows/ios-selfhosted-release.yml b/.github/workflows/ios-selfhosted-release.yml index 1bae8f2..669540c 100644 --- a/.github/workflows/ios-selfhosted-release.yml +++ b/.github/workflows/ios-selfhosted-release.yml @@ -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: @@ -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: