chores: apple app store delivery #10
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 source code on ios | |
on: | |
pull_request: | |
branches: ['main'] | |
jobs: | |
build_ios: | |
runs-on: macOS-latest | |
steps: | |
- uses: dyne/pnpm@main | |
with: | |
node-version: '20.11.1' | |
submodules: true | |
- name: Set env | |
run: echo "PUBLIC_BACKEND_URL=${{vars.PUBLIC_BACKEND_URL}}" >> $GITHUB_ENV | |
- name: Install dependencies | |
id: install_code | |
run: pnpm install | |
- name: Build | |
id: build_code | |
run: pnpm build | |
- uses: actions/cache@v3 | |
with: | |
path: ios/App/Pods | |
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-pods- | |
- name: Sync | |
id: sync_code | |
run: pnpm cap sync ios | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.0' | |
bundler-cache: true | |
- uses: maierj/[email protected] | |
env: | |
APP_STORE_CONNECT_TEAM_ID: ${{ secrets.APP_STORE_CONNECT_TEAM_ID }} | |
BUNDLE_IDENTIFIER: ${{ secrets.BUNDLE_IDENTIFIER }} | |
BUILD_CERTIFICATE_BASE64: ${{ secrets.IOS_BUILD_CERTIFICATE }} | |
BUILD_PROVISION_PROFILE_BASE64: ${{ secrets.IOS_BUILD_PROVISION_PROFILE }} | |
APPLE_KEY_ID: ${{ secrets.APPLE_KEY_ID }} | |
APPLE_ISSUER_ID: ${{ secrets.APPLE_ISSUER_ID }} | |
APPLE_KEY_CONTENT: ${{ secrets.APPLE_KEY_CONTENT }} | |
APPLE_PROFILE_NAME: ${{ secrets.APPLE_PROFILE_NAME }} | |
P12_PASSWORD: ${{ secrets.P12_PASSWORD }} | |
with: | |
lane: ios beta | |
- name: Upload release bundle | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ios-release | |
path: ./App.ipa | |
retention-days: 10 |