Update Fastfile #297
This file contains hidden or 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: CI Pipeline | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-and-release: | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Add CI platform support | |
| run: bundle lock --add-platform arm64-darwin-23 | |
| - name: Setup Ruby and Cache Bundler | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.3' | |
| cache: bundler | |
| - name: Install Ruby Gems | |
| run: | | |
| gem install bundler | |
| bundle install --jobs 4 --retry 3 | |
| - name: Setup SSH access to GitHub | |
| run: | | |
| mkdir -p ~/.ssh | |
| echo "${{ secrets.MATCH_SSH_KEY }}" > ~/.ssh/id_ed25519 | |
| chmod 600 ~/.ssh/id_ed25519 | |
| ssh-keyscan github.com >> ~/.ssh/known_hosts | |
| - name: Cache Xcode DerivedData | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/Library/Developer/Xcode/DerivedData | |
| key: ${{ runner.os }}-deriveddata-${{ hashFiles('**/Podfile.lock','**/*.xcodeproj/project.pbxproj') }} | |
| restore-keys: | | |
| ${{ runner.os }}-deriveddata- | |
| - name: Run fastlane custom_release | |
| run: bundle exec fastlane ios custom_release --verbose | |
| env: | |
| MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }} | |
| MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | |
| - name: Run fastlane release_only | |
| run: bundle exec fastlane ios release_only --verbose | |
| env: | |
| FASTLANE_APPLE_API_KEY_KEY_ID: ${{ secrets.FASTLANE_APPLE_API_KEY_KEY_ID }} | |
| FASTLANE_APPLE_API_KEY_CONTENT: ${{ secrets.FASTLANE_APPLE_API_KEY_CONTENT }} | |
| FASTLANE_APPLE_API_KEY_ISSUER_ID: ${{ secrets.FASTLANE_APPLE_API_KEY_ISSUER_ID }} | |
| MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }} |