|
5 | 5 | types: [ created ] |
6 | 6 |
|
7 | 7 | jobs: |
| 8 | + ios: |
| 9 | + runs-on: macOS-latest |
| 10 | + steps: |
| 11 | + - uses: actions/checkout@v2 |
| 12 | + with: |
| 13 | + fetch-depth: 1 |
| 14 | + - name: Import signing keys |
| 15 | + run: | |
| 16 | + security create-keychain -p password build.keychain |
| 17 | + security default-keychain -s ~/Library/Keychains/build.keychain |
| 18 | +
|
| 19 | + base64 -D <<< "${{ secrets.CERT_APPLE_DISTRIBUTION }}" > Apple_Distribution_Z52EFCPL6D.p7b |
| 20 | + security import ./Apple_Distribution_Z52EFCPL6D.p7b -k ~/Library/Keychains/build.keychain -T /usr/bin/codesign |
| 21 | +
|
| 22 | + base64 -D <<< "${{ secrets.CERT_APPLE_DEVELOPMENT }}" > Apple_Development_N952V7G2F5.p7b |
| 23 | + security import ./Apple_Development_N952V7G2F5.p7b -k ~/Library/Keychains/build.keychain -T /usr/bin/codesign |
| 24 | +
|
| 25 | + base64 -D <<< "${{ secrets.CERT_APPLE_DISTRIBUTION_P12 }}" > Apple_Distribution_Z52EFCPL6D.p12 |
| 26 | + security import ./Apple_Distribution_Z52EFCPL6D.p12 -k ~/Library/Keychains/build.keychain -P heslo -T /usr/bin/codesign |
| 27 | +
|
| 28 | + base64 -D <<< "${{ secrets.CERT_APPLE_DEVELOPMENT_P12 }}" > Apple_Development_N952V7G2F5.p12 |
| 29 | + security import ./Apple_Development_N952V7G2F5.p12 -k ~/Library/Keychains/build.keychain -P heslo -T /usr/bin/codesign |
| 30 | +
|
| 31 | + base64 -D <<< "${{ secrets.CERT_DEVELOPER_ID_APPLICATION }}" > Developer_ID_Application_Z52EFCPL6D.p7b |
| 32 | + security import ./Developer_ID_Application_Z52EFCPL6D.p7b -k ~/Library/Keychains/build.keychain -P heslo -T /usr/bin/codesign |
| 33 | +
|
| 34 | + # Unlock |
| 35 | + security unlock-keychain -p password ~/Library/Keychains/build.keychain |
| 36 | + security set-keychain-settings -lu |
| 37 | + security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k password ~/Library/Keychains/build.keychain |
| 38 | +
|
| 39 | + - name: Import provisioning profile |
| 40 | + run: | |
| 41 | + mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles |
| 42 | + cp dist/ios/*.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles/ |
| 43 | + - name: Cache Qt |
| 44 | + id: cache-qt |
| 45 | + uses: actions/cache@v1 |
| 46 | + with: |
| 47 | + path: ../Qt |
| 48 | + key: QtCache-5.15.1 |
| 49 | + - name: Install Qt |
| 50 | + uses: jurplel/install-qt-action@v2 |
| 51 | + with: |
| 52 | + version: 5.15.1 |
| 53 | + cached: ${{ steps.cache-qt.outputs.cache-hit }} |
| 54 | + target: ios |
| 55 | + - name: Build the iOS binary and upload it to Testflight |
| 56 | + env: |
| 57 | + APPLEID_PASSWORD: ${{ secrets.APPLEID_PASSWORD }} |
| 58 | + APPLEID_NAME: ${{ secrets.APPLEID_NAME }} |
| 59 | + run: | |
| 60 | + export TAG_NAME=$(./dist/get-tag-name.sh) |
| 61 | + bash ./dist/ios/build.sh |
| 62 | +
|
8 | 63 | android: |
9 | 64 | runs-on: ubuntu-20.04 |
10 | 65 | steps: |
11 | | - - uses: actions/checkout@v1 |
| 66 | + - uses: actions/checkout@v2 |
12 | 67 | with: |
13 | 68 | fetch-depth: 1 |
14 | 69 | - name: Cache Qt |
|
0 commit comments