|
| 1 | +# This workflow will build a Swift project |
| 2 | +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift |
| 3 | + |
| 4 | +name: develop-hotfix |
| 5 | + |
| 6 | +on: |
| 7 | + push: |
| 8 | + branches: [ "develop" ] |
| 9 | + |
| 10 | + workflow_dispatch: |
| 11 | + |
| 12 | +jobs: |
| 13 | + build: |
| 14 | + if: startsWith(github.event.head_commit.message, '[hotfix]') |
| 15 | + runs-on: macos-latest |
| 16 | + |
| 17 | + steps: |
| 18 | + - uses: actions/checkout@v4 |
| 19 | + |
| 20 | + - name: Set up Xcode |
| 21 | + uses: maxim-lobanov/setup-xcode@v1 |
| 22 | + with: |
| 23 | + xcode-version: latest-stable |
| 24 | + |
| 25 | + - uses: shimataro/ssh-key-action@v2 |
| 26 | + with: |
| 27 | + key: ${{ secrets.SSH_KEY }} |
| 28 | + known_hosts: ${{ secrets.KNOWN_HOSTS }} |
| 29 | + |
| 30 | + - name: initial mise |
| 31 | + run: | |
| 32 | + curl https://mise.jdx.dev/install.sh | sh |
| 33 | + echo "$HOME/.local/share/mise/bin" >> $GITHUB_PATH |
| 34 | + echo "$HOME/.local/share/mise/shims" >> $GITHUB_PATH |
| 35 | +
|
| 36 | + - name: initial tuist |
| 37 | + run: mise install tuist |
| 38 | + |
| 39 | + - name: Generate Project |
| 40 | + env: |
| 41 | + MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} |
| 42 | + DEVELOPMENT_TEAM: ${{ secrets.DEVELOPMENT_TEAM }} |
| 43 | + run: | |
| 44 | + fastlane appstore_profile |
| 45 | + make release |
| 46 | +
|
| 47 | + - name: Build Archive |
| 48 | + env: |
| 49 | + APP_STORE_CONNECT_KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }} |
| 50 | + APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }} |
| 51 | + APP_STORE_CONNECT_API: ${{ secrets.APP_STORE_CONNECT_API }} |
| 52 | + run: fastlane archive |
| 53 | + |
| 54 | + - name: Testflight Release |
| 55 | + env: |
| 56 | + APP_STORE_CONNECT_KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }} |
| 57 | + APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }} |
| 58 | + APP_STORE_CONNECT_API: ${{ secrets.APP_STORE_CONNECT_API }} |
| 59 | + run: fastlane testflight_release |
0 commit comments