add_identifiers.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. name: 2. Add Identifiers
  2. run-name: Add Identifiers (${{ github.ref_name }})
  3. on:
  4. workflow_dispatch:
  5. jobs:
  6. validate:
  7. name: Validate
  8. uses: ./.github/workflows/validate_secrets.yml
  9. secrets: inherit
  10. identifiers:
  11. name: Add Identifiers
  12. needs: validate
  13. runs-on: macos-14
  14. steps:
  15. # Uncomment to manually select latest Xcode if needed
  16. #- name: Select Latest Xcode
  17. # run: "sudo xcode-select --switch /Applications/Xcode_13.0.app/Contents/Developer"
  18. # Checks-out the repo
  19. - name: Checkout Repo
  20. uses: actions/checkout@v4
  21. # Patch Fastlane Match to not print tables
  22. - name: Patch Match Tables
  23. run: |
  24. TABLE_PRINTER_PATH=$(ruby -e 'puts Gem::Specification.find_by_name("fastlane").gem_dir')/match/lib/match/table_printer.rb
  25. if [ -f "$TABLE_PRINTER_PATH" ]; then
  26. sed -i "" "/puts(Terminal::Table.new(params))/d" "$TABLE_PRINTER_PATH"
  27. else
  28. echo "table_printer.rb not found"
  29. exit 1
  30. fi
  31. # Install project dependencies
  32. - name: Install Project Dependencies
  33. run: bundle install
  34. # Sync the GitHub runner clock with the Windows time server (workaround as suggested in https://github.com/actions/runner/issues/2996)
  35. - name: Sync clock
  36. run: sudo sntp -sS time.windows.com
  37. # Create or update identifiers for app
  38. - name: Fastlane Provision
  39. run: bundle exec fastlane identifiers
  40. env:
  41. TEAMID: ${{ secrets.TEAMID }}
  42. GH_PAT: ${{ secrets.GH_PAT }}
  43. MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
  44. FASTLANE_KEY_ID: ${{ secrets.FASTLANE_KEY_ID }}
  45. FASTLANE_ISSUER_ID: ${{ secrets.FASTLANE_ISSUER_ID }}
  46. FASTLANE_KEY: ${{ secrets.FASTLANE_KEY }}