update Build App github action #25
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: Build App | |
on: | |
push: | |
branches: | |
- "testflight" | |
- "ci" | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # all history | |
fetch-tags: true | |
- name: Install Homebrew dependencies | |
run: | | |
env HOMEBREW_NO_AUTO_UPDATE=1 brew install xcbeautify | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.2.2" | |
bundler-cache: true | |
bundler: "2.2.27" | |
rubygems: "latest" | |
cache-version: 1 # Increment to invalidate cache | |
# - name: Decode signing certificate into a file | |
# env: | |
# CERTIFICATE_BASE64: ${{ secrets.IOS_DIST_SIGNING_KEY }} | |
# run: | | |
# echo $CERTIFICATE_BASE64 | base64 --decode > signing-cert.p12 | |
- name: Run fastlane | |
run: bundle exec fastlane CI_TO_TESTFLIGHT_DEPLOY | |
env: | |
APPLE_ISSUER_ID: ${{ secrets.APPLE_ISSUER_ID }} | |
APPLE_KEY_CONTENT: ${{ secrets.APPLE_KEY_CONTENT }} | |
APPLE_KEY_ID: ${{ secrets.APPLE_KEY_ID }} | |
ASC_P8_KEY_ENCODED: ${{ secrets.ASC_P8_KEY_ENCODED }} | |
DEVELOPER_APPLE_ID: ${{ secrets.DEVELOPER_APPLE_ID }} | |
DEVELOPER_APP_IDENTIFIER: ${{ secrets.DEVELOPER_APP_IDENTIFIER }} | |
GIT_AUTHORIZATION: ${{ secrets.GIT_AUTHORIZATION }} | |
PROVISIONING_PROFILE_SPECIFIER: ${{ secrets.PROVISIONING_PROFILE_SPECIFIER }} | |
MATCH_KEYCHAIN_USER: ${{ secrets.MATCH_KEYCHAIN_USER }} | |
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | |
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }} | |
REPO_GITHUB_TOKEN: "" | |
- name: Archive IPA and dSYM artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: lunar-artifacts | |
path: | | |
${{ github.workspace }}/Lunar.ipa | |
${{ github.workspace }}/Lunar.app.dSYM.zip |