Skip to content

Commit

Permalink
iOS code signing
Browse files Browse the repository at this point in the history
  • Loading branch information
luxaritas committed Jul 23, 2024
1 parent de3ee87 commit cc83c1e
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ jobs:
include:
- runner: macos-latest
target: ios
packageType: development
- runner: macos-latest
target: ios
packageType: app-store
- runner: ubuntu-latest
target: android

Expand Down Expand Up @@ -137,13 +141,28 @@ jobs:
run: npx cordova platform add ${{ matrix.target }}
env:
PARALLEL_BUILD: true

- uses: actions/setup-java@v4
if: ${{ matrix.target == 'android' }}
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Build
- name: Build Android
if: ${{ matrix.target == 'android' }}
run: npx cordova build ${{ matrix.target }} --${{ env.BUILD_TYPE == 'prod' && 'release' || 'debug' }} --device
env:
PARALLEL_BUILD: true

- name: Set up App Store Connect API key
env:
APP_STORE_CONNECT_API_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY }}
run: echo $APP_STORE_CONNECT_API_KEY > "${{ github.workspace }}/authkey.p8"
- name: Build iOS
if: ${{ matrix.target == 'android' }}
run: |
npx cordova build ${{ matrix.target }} --${{ env.BUILD_TYPE == 'prod' && 'release' || 'debug' }} --device \
--automaticProvisioning --authenticationKeyPath "${{ github.workspace }}/authkey.p8" \
--authenticationKeyID ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }} --packageType ${{ matrix.packageType }}
env:
PARALLEL_BUILD: true

0 comments on commit cc83c1e

Please sign in to comment.