Update Fastfile #313
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: Install Fastlane | |
| run: gem install fastlane --no-document | |
| - name: Setup SSH for match repo | |
| 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: Show Global Git Config | |
| run: git config --global --get-regexp ^url || echo "⛔️ no override" | |
| - 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: fastlane ios custom_release --verbose | |
| env: | |
| MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | |
| MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }} | |
| 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 }} |