Skip to content

Commit

Permalink
Merge pull request #107 from MCN-ING/ci/update-github-actions
Browse files Browse the repository at this point in the history
ci: update github actions
  • Loading branch information
fc-santos authored Aug 30, 2024
2 parents a16bec8 + 8a77e93 commit be59d63
Show file tree
Hide file tree
Showing 3 changed files with 176 additions and 122 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/actions/create-ios-sig-creds/action.yml
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
48 changes: 48 additions & 0 deletions .github/workflows/actions/ship-to-itunes/action.yml
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}"
Loading

0 comments on commit be59d63

Please sign in to comment.