|
| 1 | +name: 'Setup iOS Demo Codesigning' |
| 2 | +description: 'Import the Appium signing cert and download provisioning profiles for the OneSignal demo app (main target + optional NSE and Widget). Call this once per iOS build job in an SDK E2E workflow.' |
| 3 | + |
| 4 | +inputs: |
| 5 | + p12-base64: |
| 6 | + description: 'Base64-encoded .p12 signing certificate' |
| 7 | + required: true |
| 8 | + p12-password: |
| 9 | + description: 'Password used when exporting the .p12' |
| 10 | + required: true |
| 11 | + asc-key-id: |
| 12 | + description: 'App Store Connect API Key ID' |
| 13 | + required: true |
| 14 | + asc-issuer-id: |
| 15 | + description: 'App Store Connect API Issuer ID' |
| 16 | + required: true |
| 17 | + asc-private-key-base64: |
| 18 | + description: 'Base64-encoded App Store Connect API private key (.p8)' |
| 19 | + required: true |
| 20 | + main-bundle-id: |
| 21 | + description: 'Main app bundle identifier' |
| 22 | + required: false |
| 23 | + default: 'com.onesignal.example' |
| 24 | + nse-bundle-id: |
| 25 | + description: 'Notification Service Extension bundle identifier. Leave empty to skip.' |
| 26 | + required: false |
| 27 | + default: 'com.onesignal.example.NSE' |
| 28 | + widget-bundle-id: |
| 29 | + description: 'Live Activity / Widget Extension bundle identifier. Leave empty to skip.' |
| 30 | + required: false |
| 31 | + default: 'com.onesignal.example.LA' |
| 32 | + profile-type: |
| 33 | + description: 'Provisioning profile type (IOS_APP_DEVELOPMENT, IOS_APP_ADHOC, IOS_APP_STORE)' |
| 34 | + required: false |
| 35 | + default: 'IOS_APP_DEVELOPMENT' |
| 36 | + |
| 37 | +runs: |
| 38 | + using: composite |
| 39 | + steps: |
| 40 | + - name: Codesigning (main) |
| 41 | + uses: ./.github/actions/setup-ios-codesigning |
| 42 | + with: |
| 43 | + p12-base64: ${{ inputs.p12-base64 }} |
| 44 | + p12-password: ${{ inputs.p12-password }} |
| 45 | + asc-key-id: ${{ inputs.asc-key-id }} |
| 46 | + asc-issuer-id: ${{ inputs.asc-issuer-id }} |
| 47 | + asc-private-key-base64: ${{ inputs.asc-private-key-base64 }} |
| 48 | + bundle-id: ${{ inputs.main-bundle-id }} |
| 49 | + profile-type: ${{ inputs.profile-type }} |
| 50 | + |
| 51 | + - name: Codesigning (NSE) |
| 52 | + if: inputs.nse-bundle-id != '' |
| 53 | + uses: ./.github/actions/setup-ios-codesigning |
| 54 | + with: |
| 55 | + p12-base64: ${{ inputs.p12-base64 }} |
| 56 | + p12-password: ${{ inputs.p12-password }} |
| 57 | + asc-key-id: ${{ inputs.asc-key-id }} |
| 58 | + asc-issuer-id: ${{ inputs.asc-issuer-id }} |
| 59 | + asc-private-key-base64: ${{ inputs.asc-private-key-base64 }} |
| 60 | + bundle-id: ${{ inputs.nse-bundle-id }} |
| 61 | + profile-type: ${{ inputs.profile-type }} |
| 62 | + |
| 63 | + - name: Codesigning (Widget) |
| 64 | + if: inputs.widget-bundle-id != '' |
| 65 | + uses: ./.github/actions/setup-ios-codesigning |
| 66 | + with: |
| 67 | + p12-base64: ${{ inputs.p12-base64 }} |
| 68 | + p12-password: ${{ inputs.p12-password }} |
| 69 | + asc-key-id: ${{ inputs.asc-key-id }} |
| 70 | + asc-issuer-id: ${{ inputs.asc-issuer-id }} |
| 71 | + asc-private-key-base64: ${{ inputs.asc-private-key-base64 }} |
| 72 | + bundle-id: ${{ inputs.widget-bundle-id }} |
| 73 | + profile-type: ${{ inputs.profile-type }} |
0 commit comments