build_LoopFollow.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. name: 4. Build Loop Follow
  2. run-name: Build Loop Follow (${{ github.ref_name }})
  3. on:
  4. workflow_dispatch:
  5. ## Remove the "#" sign from the beginning of the line below to get automated builds on push (code changes in your repository)
  6. #push:
  7. ## Remove the "#" sign from the beginning of the two lines below to get automated builds every two months
  8. #schedule:
  9. #- cron: '0 17 1 */2 *' # Runs at 17:00 UTC on the 1st in Jan, Mar, May, Jul, Sep and Nov.
  10. jobs:
  11. validate:
  12. name: Validate
  13. uses: ./.github/workflows/validate_secrets.yml
  14. secrets: inherit
  15. build:
  16. name: Build
  17. needs: validate
  18. runs-on: macos-12
  19. steps:
  20. # Uncomment to manually select latest Xcode if needed
  21. - name: Select Latest Xcode
  22. run: "sudo xcode-select --switch /Applications/Xcode_14.1.app/Contents/Developer"
  23. # Checks-out the repo
  24. - name: Checkout Repo
  25. uses: actions/checkout@v3
  26. with:
  27. submodules: recursive
  28. # Patch Fastlane Match to not print tables
  29. - name: Patch Match Tables
  30. run: find /usr/local/lib/ruby/gems -name table_printer.rb | xargs sed -i "" "/puts(Terminal::Table.new(params))/d"
  31. # Build signed Loop Follow IPA file
  32. - name: Fastlane Build & Archive
  33. run: fastlane build_LoopFollow
  34. env:
  35. TEAMID: ${{ secrets.TEAMID }}
  36. GH_PAT: ${{ secrets.GH_PAT }}
  37. FASTLANE_KEY_ID: ${{ secrets.FASTLANE_KEY_ID }}
  38. FASTLANE_ISSUER_ID: ${{ secrets.FASTLANE_ISSUER_ID }}
  39. FASTLANE_KEY: ${{ secrets.FASTLANE_KEY }}
  40. MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
  41. # Upload to TestFlight
  42. - name: Fastlane upload to TestFlight
  43. run: fastlane release
  44. env:
  45. TEAMID: ${{ secrets.TEAMID }}
  46. GH_PAT: ${{ secrets.GH_PAT }}
  47. FASTLANE_KEY_ID: ${{ secrets.FASTLANE_KEY_ID }}
  48. FASTLANE_ISSUER_ID: ${{ secrets.FASTLANE_ISSUER_ID }}
  49. FASTLANE_KEY: ${{ secrets.FASTLANE_KEY }}
  50. MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
  51. # Upload IPA and Symbols
  52. - name: Upload IPA and Symbol artifacts
  53. uses: actions/upload-artifact@v3
  54. with:
  55. name: build-artifacts
  56. path: |
  57. artifacts
  58. buildlog