build_FAX.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. name: 4. Build FAX
  2. run-name: Build FAX
  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. secrets:
  12. uses: ./.github/workflows/validate_secrets.yml
  13. secrets: inherit
  14. build:
  15. needs: secrets
  16. runs-on: macos-12
  17. steps:
  18. # Uncomment to manually select latest Xcode if needed
  19. - name: Select Latest Xcode
  20. run: "sudo xcode-select --switch /Applications/Xcode_14.1.app/Contents/Developer"
  21. # Checks-out the repo
  22. - name: Checkout Repo
  23. uses: actions/checkout@v3
  24. with:
  25. submodules: recursive
  26. # Patch Fastlane Match to not print tables
  27. - name: Patch Match Tables
  28. run: find /usr/local/lib/ruby/gems -name table_printer.rb | xargs sed -i "" "/puts(Terminal::Table.new(params))/d"
  29. # Build signed FreeAPS X IPA file
  30. - name: Fastlane Build & Archive
  31. run: fastlane build_fax
  32. env:
  33. TEAMID: ${{ secrets.TEAMID }}
  34. GH_PAT: ${{ secrets.GH_PAT }}
  35. FASTLANE_KEY_ID: ${{ secrets.FASTLANE_KEY_ID }}
  36. FASTLANE_ISSUER_ID: ${{ secrets.FASTLANE_ISSUER_ID }}
  37. FASTLANE_KEY: ${{ secrets.FASTLANE_KEY }}
  38. MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
  39. # Upload to TestFlight
  40. - name: Fastlane upload to TestFlight
  41. run: fastlane release
  42. env:
  43. TEAMID: ${{ secrets.TEAMID }}
  44. GH_PAT: ${{ secrets.GH_PAT }}
  45. FASTLANE_KEY_ID: ${{ secrets.FASTLANE_KEY_ID }}
  46. FASTLANE_ISSUER_ID: ${{ secrets.FASTLANE_ISSUER_ID }}
  47. FASTLANE_KEY: ${{ secrets.FASTLANE_KEY }}
  48. MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
  49. # Upload IPA and Symbols
  50. - name: Upload IPA and Symbol artifacts
  51. uses: actions/upload-artifact@v3
  52. with:
  53. name: build-artifacts
  54. path: |
  55. artifacts
  56. buildlog