This repository has been archived by the owner on May 4, 2024. It is now read-only.
addded documentation #23
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: IOS Production Build | |
on: pull_request ## trigger the workflow on pull request | |
jobs: | |
ios-build: | |
name: IOS Production Build | |
runs-on: macOS-latest | |
defaults: | |
run: | |
working-directory: ios | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v2 | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- name: Restore node_modules from cache | |
uses: actions/cache@v2 | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile --network-timeout 300000 | |
- name: Setup Ruby (bundle) | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 | |
bundler-cache: true | |
- name: Restore Pods cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
ios/Pods | |
~/Library/Caches/CocoaPods | |
~/.cocoapods | |
key: ${{ runner.os }}-pods-${{ hashFiles('ios/Podfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-pods- | |
- name: Install Pods | |
run: pod install --repo-update | |
- name: Build IOS App | |
uses: yukiarrr/ios-build-action@v1.4.0 | |
with: | |
project-path: ios/stabo.xcodeproj | |
p12-base64: ${{ secrets.IOS_P12_BASE64 }} | |
mobileprovision-base64: ${{ secrets.IOS_MOBILE_PROVISION_BASE64 }} | |
code-signing-identity: 'iPhone Distribution' | |
team-id: ${{ secrets.IOS_TEAM_ID }} | |
certificate-password: ${{ secrets.IOS_CERTIFICATE_PASSWORD }} | |
workspace-path: ios/stabo.xcworkspace | |
scheme: stabo | |
# - name: 'Upload app to TestFlight' | |
# uses: apple-actions/upload-testflight-build@v1 | |
# with: | |
# app-path: 'output.ipa' | |
# issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }} | |
# api-key-id: ${{ secrets.APPSTORE_API_KEY_ID }} | |
# api-private-key: ${{ secrets.APPSTORE_API_PRIVATE_KEY }} |