Skip to content

update Build App github action #46

update Build App github action

update Build App github action #46

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- "testflight"
- "ci"
jobs:
build:
runs-on: macos-13
steps:
- name: Checkout Repo
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: Select Xcode version
# run: sudo xcode-select -s '/Applications/Xcode_15.0.1.app/Contents/Developer'
- 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
# - name: Update fastlane
# run: bundle update fastlane
# - name: Cache Xcode Data
# uses: irgaly/xcode-cache@v1
# with:
# key: xcode-cache-deriveddata-${{ github.workflow }}-${{ github.sha }}
# restore-keys: xcode-cache-deriveddata-${{ github.workflow }}-
- name: fastlane Deploy to Testflight
run: bundle exec fastlane CI_TO_TESTFLIGHT_DEPLOY
env:
GIT_AUTHORIZATION: ${{ secrets.GIT_AUTHORIZATION }}
DEVELOPER_APPLE_ID: ${{ secrets.DEVELOPER_APPLE_ID }}
DEVELOPER_APP_IDENTIFIER: ${{ secrets.DEVELOPER_APP_IDENTIFIER }}
PROVISIONING_PROFILE_SPECIFIER: ${{ secrets.PROVISIONING_PROFILE_SPECIFIER }}
APPLE_ISSUER_ID: ${{ secrets.APPLE_ISSUER_ID }}
APPLE_KEY_ID: ${{ secrets.APPLE_KEY_ID }}
APPLE_KEY_CONTENT: ${{ secrets.APPLE_KEY_CONTENT }}
MATCH_KEYCHAIN_USER: ${{ secrets.MATCH_KEYCHAIN_USER }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
MATCH_CERTS_URL_LUNAR: ${{ secrets.MATCH_CERTS_URL_LUNAR }}
ASC_P8_KEY_ENCODED: ${{ secrets.ASC_P8_KEY_ENCODED }}
REPO_GITHUB_TOKEN: ""
LOCAL_KEYCHAIN_PASS: ${{ secrets.LOCAL_KEYCHAIN_PASS }}
# - run: git diff origin/testflight
- run: git diff --color origin/ci
- 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
# - name: Output build summary
# run: |
# echo 'Build Summary' >> $GITHUB_STEP_SUMMARY