Generate iOS Certs #1
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
name: Generate iOS Certs | |
on: | |
workflow_run: | |
workflows: ['iOS One-Time Setup'] | |
types: | |
- completed | |
workflow_dispatch: | |
jobs: | |
generate_certs: | |
runs-on: macos-latest | |
steps: | |
############## | |
# Checkout # | |
############## | |
- uses: actions/checkout@v4 | |
################ | |
# Setup ruby # | |
################ | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2 | |
bundler-cache: true | |
########### | |
# Build # | |
########### | |
- name: Build iOS | |
shell: bash | |
run: | | |
eval "$(ssh-agent -s)" | |
ssh-add - <<< "${MATCH_DEPLOY_KEY}" | |
bundle exec fastlane ios sync_certificates | |
env: | |
APPSTORE_ISSUER_ID: ${{ secrets.APPSTORE_ISSUER_ID }} | |
APPSTORE_KEY_ID: ${{ secrets.APPSTORE_KEY_ID }} | |
APPSTORE_P8: ${{ secrets.APPSTORE_P8 }} | |
IOS_BUNDLE_ID: ${{ secrets.IOS_BUNDLE_ID }} | |
GH_PAT: ${{ secrets.GH_PAT }} | |
GITHUB_REPOSITORY: ${{ env.GITHUB_REPOSITORY }} | |
MATCH_REPOSITORY: ${{ secrets.MATCH_REPOSITORY }} | |
MATCH_DEPLOY_KEY: ${{ secrets.MATCH_DEPLOY_KEY }} | |
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} |