Update Fastfile #299
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: gem install fastlane --no-document | |
| - 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: fastlane ios custom_release --verbose | |
| env: | |
| MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }} | |
| MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | |
| - name: Run fastlane release_only | |
| run: 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 }} |