Insert ASC keys from secrets to env #2
Workflow file for this run
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: Self-hosted Build | ||
on: | ||
workflow_call: | ||
inputs: | ||
use_git_lfs: | ||
description: Whether to download Git-LFS files. | ||
type: boolean | ||
required: false | ||
default: false | ||
secrets: | ||
MATCH_PASSWORD: | ||
required: true | ||
description: > | ||
Password for decrypting of certificates and provisioning profiles. | ||
APP_STORE_CONNECT_API_KEY_KEY: | ||
required: true | ||
description: > | ||
Private App Store Connect API key for submitting build to App Store. | ||
APP_STORE_CONNECT_API_KEY_KEY_ID: | ||
required: true | ||
description: > | ||
Private App Store Connect API key for submitting build to App Store. | ||
APP_STORE_CONNECT_API_KEY_ISSUER_ID: | ||
required: true | ||
description: > | ||
Private App Store Connect API issuer key for submitting build to App Store. | ||
jobs: | ||
build: | ||
runs-on: self-hosted | ||
timeout-minutes: 30 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: ${{ inputs.use_git_lfs }} | ||
- name: Fastlane Beta | ||
run: | | ||
gem install bundler | ||
bundle install --jobs 4 --retry 3 | ||
bundle exec fastlane beta | ||
env: | ||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | ||
PR_TITLE: ${{ github.event.pull_request.title }} | ||
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }} | ||
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }} | ||
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }} | ||
- name: Upload IPA | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Build.ipa | ||
path: build_output/*.ipa | ||
- name: Upload dSYM | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Build.app.dSYM.zip | ||
path: build_output/*.app.dSYM.zip | ||
- name: Clear Archives | ||
run: | | ||
rm -rf ~/Library/Developer/Xcode/Archives |