add_identifiers.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. needs: validate
  12. runs-on: macos-13
  13. steps:
  14. # Uncomment to manually select Xcode version if needed
  15. - name: Select Xcode version
  16. run: "sudo xcode-select --switch /Applications/Xcode_15.0.1.app/Contents/Developer"
  17. # Checks-out the repo
  18. - name: Checkout Repo
  19. uses: actions/checkout@v3
  20. # Patch Fastlane Match to not print tables
  21. - name: Patch Match Tables
  22. run: find /usr/local/lib/ruby/gems -name table_printer.rb | xargs sed -i "" "/puts(Terminal::Table.new(params))/d"
  23. # Install project dependencies
  24. - name: Install Project Dependencies
  25. run: bundle install
  26. # Sync the GitHub runner clock with the Windows time server (workaround as suggested in https://github.com/actions/runner/issues/2996)
  27. - name: Sync clock
  28. run: sudo sntp -sS time.windows.com
  29. # Create or update identifiers for app
  30. - name: Fastlane Provision
  31. run: bundle exec fastlane identifiers
  32. env:
  33. TEAMID: ${{ secrets.TEAMID }}
  34. GH_PAT: ${{ secrets.GH_PAT }}
  35. MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
  36. FASTLANE_KEY_ID: ${{ secrets.FASTLANE_KEY_ID }}
  37. FASTLANE_ISSUER_ID: ${{ secrets.FASTLANE_ISSUER_ID }}
  38. FASTLANE_KEY: ${{ secrets.FASTLANE_KEY }}