Update testflight.yml #19
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
| # This workflow will build a Swift project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift | |
| name: TestFlight Update | |
| on: | |
| push: | |
| tags: ['v*'] | |
| branches: ['main'] | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Extract version from tag | |
| id: ver | |
| run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT | |
| - name: Configure git auth for match repo | |
| run: git config --global url."https://${GIT_TOKEN}@github.com/".insteadOf "https://github.com/" | |
| env: | |
| GIT_TOKEN: ${{ secrets.GIT_TOKEN }} | |
| - name: install fastlane | |
| run: brew install fastlane | |
| - name: execute lane | |
| working-directory: MMM_SideProject | |
| run: fastlane testflight | |
| env: | |
| MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | |
| MATCH_GIT_URL: ${{ secrets.MATCH_GIT_URL }} | |
| GIT_TOKEN: ${{ secrets.GIT_TOKEN }} | |
| APP_STORE_CONNECT_KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }} | |
| APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }} | |
| APP_STORE_CONNECT_KEY_CONTENT: ${{ secrets.APP_STORE_CONNECT_KEY_CONTENT }} | |
| KEYCHAIN_NAME: ${{ secrets.KEYCHAIN_NAME }} | |
| KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }} | |
| VERSION: ${{ steps.ver.outputs.VERSION }} | |