forked from bcgov/bc-wallet-mobile
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from MCN-ING/ci/update-github-actions
ci: update github actions
- Loading branch information
Showing
3 changed files
with
176 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Export Signed iOS Archive | ||
description: Export a signed iOS Archive | ||
|
||
inputs: | ||
certificate: | ||
description: | | ||
The Base64 encoded certificate to use for | ||
signing the archive. This should be in p12 format. | ||
required: true | ||
certificate_password: | ||
description: | | ||
The password for importing the certificate. | ||
requred: true | ||
provisioning_profile: | ||
description: | | ||
The Base64 encoded provisioning profile to use for | ||
signing the archive. This should be in mobileprovision format. | ||
requred: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Build Keychain | ||
shell: bash | ||
env: | ||
CERTIFICATE: ${{ inputs.certificate }} | ||
run: | | ||
scripts/makekc.sh ${{ inputs.certificate_password }} | ||
# https://docs.github.com/en/actions/deployment/deploying-xcode-applications/installing-an-apple-certificate-on-macos-runners-for-xcode-development | ||
- name: Create Provisioning Profile | ||
shell: bash | ||
env: | ||
PROVISIONING_PROFILE: ${{ inputs.provisioning_profile }} | ||
run: | | ||
scripts/makepp.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Ship to iTunes | ||
description: Upload an artifact to iTunes Connect | ||
|
||
inputs: | ||
app_store_connect_issuer_id: | ||
description: The iTunes Connect issuer ID | ||
required: true | ||
app_store_connect_key_identifier: | ||
description: The iTunes Connect key identifier | ||
required: true | ||
app_store_connect_private_key: | ||
description: | | ||
The iTunes Connect private key. | ||
requred: true | ||
version_code: | ||
description: | | ||
The build number for the release notes. i.e 1471 | ||
required: true | ||
version_name: | ||
description: | | ||
The version name for the release notes. i.e 1.0.1 | ||
requred: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
# https://blog.codemagic.io/app-store-connect-api-codemagic-cli-tools/ | ||
- name: Install Codemagic CLI Tools | ||
shell: bash | ||
run: | | ||
pip3 install codemagic-cli-tools | ||
- name: Ship to iTunes | ||
shell: bash | ||
env: | ||
APP_STORE_CONNECT_ISSUER_ID: ${{ inputs.app_store_connect_issuer_id }} | ||
APP_STORE_CONNECT_KEY_IDENTIFIER: ${{ inputs.app_store_connect_key_identifier }} | ||
APP_STORE_CONNECT_PRIVATE_KEY: ${{ inputs.app_store_connect_private_key }} | ||
VERSION_CODE: ${{ inputs.version_code }} | ||
VERSION_NAME: ${{ inputs.version_name }} | ||
run: | | ||
export PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.11/bin | ||
app-store-connect publish \ | ||
--enable-package-validation \ | ||
--max-build-processing-wait 10 \ | ||
--testflight \ | ||
--beta-group "The Team" "MCN Team" \ | ||
--whats-new "Release ${VERSION_NAME}-${GITHUB_RUN_NUMBER}" |
Oops, something went wrong.