create_certs.yml 1.5 KB

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