create_certs.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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-15
  14. steps:
  15. # Checks-out the repo
  16. - name: Checkout Repo
  17. uses: actions/checkout@v4
  18. # Patch Fastlane Match to not print tables
  19. - name: Patch Match Tables
  20. run: find /usr/local/lib/ruby/gems -name table_printer.rb | xargs sed -i "" "/puts(Terminal::Table.new(params))/d"
  21. # Sync the GitHub runner clock with the Windows time server (workaround as suggested in https://github.com/actions/runner/issues/2996)
  22. - name: Sync clock
  23. run: sudo sntp -sS time.windows.com
  24. # Create or update certificates for app
  25. - name: Create Certificates
  26. run: fastlane certs
  27. env:
  28. TEAMID: ${{ secrets.TEAMID }}
  29. GH_PAT: ${{ secrets.GH_PAT }}
  30. MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
  31. FASTLANE_KEY_ID: ${{ secrets.FASTLANE_KEY_ID }}
  32. FASTLANE_ISSUER_ID: ${{ secrets.FASTLANE_ISSUER_ID }}
  33. FASTLANE_KEY: ${{ secrets.FASTLANE_KEY }}