Skip to content

An example of how to use GitHub Actions for iOS app development

License

Notifications You must be signed in to change notification settings

jamesward/Example-iOS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example-iOS

An example of how to use Apple development GitHub Actions

  1. Get App Store Team ID from: https://developer.apple.com/account#MembershipDetailsCard

  2. Store App Store Team ID in GitHub Secret: APPSTORE_TEAM_ID

  3. Create Identifier for App IDs https://developer.apple.com/account/resources/identifiers/list

  4. Store in GitHub Secret: BUNDLE_ID

  5. Create App Store Connect API https://appstoreconnect.apple.com/access/api

  6. Store Issuer ID in GitHub Secret: APPSTORE_ISSUER_ID

  7. Generate API Key with Access App Manager

  8. Store Key ID in GitHub Secret: APPSTORE_KEY_ID

  9. Store Private Key in GitHub Secret: APPSTORE_PRIVATE_KEY

  10. Generate a Private Key for signing: openssl genrsa -out mykey.key 2048

  11. Generate a Certificate Signing Request:

    export EMAIL=YOUR_EMAIL
    export NAME="YOUR_NAME"
    openssl req -new -key mykey.key -out CertificateSigningRequest.certSigningRequest -subj "/emailAddress=$EMAIL, CN=$NAME, C=US"
    
  12. Add a new Certificate of Apple Development https://developer.apple.com/account/resources/certificates/add

  13. Upload the CertificateSigningRequest.certSigningRequest

  14. Download the certificate

  15. Convert the cert to PEM format: openssl x509 -in development.cer -inform DER -out development.pem -outform PEM

  16. Add a new Certificate of Apple Distribution https://developer.apple.com/account/resources/certificates/add

  17. Upload the CertificateSigningRequest.certSigningRequest

  18. Download the certificate

  19. Convert the cert to PEM format: openssl x509 -in distribution.cer -inform DER -out distribution.pem -outform PEM

  20. Combine the two certs: cat development.pem distribution.pem > cert.pem

  21. Export the p12 remembering the password: openssl pkcs12 -export -legacy -inkey mykey.key -in cert.pem -out cert.p12

  22. Store the password in GitHub Secret: CERTIFICATES_PASSWORD

  23. Convert the cert to Base64 and store in GitHub Secret: CERTIFICATES_P12 base64 cert.p12

  24. Create iOS App Development Provisioning Profile: https://developer.apple.com/account/resources/profiles/add

  25. Store the name of the provisioning profile in GitHub Secret: DEV_PROVISIONING_PROFILE_NAME

  26. Create App Store Provisioning Profile: https://developer.apple.com/account/resources/profiles/add

  27. Store the name of the provisioning profile in GitHub Secret: DIST_PROVISIONING_PROFILE_NAME

About

An example of how to use GitHub Actions for iOS app development

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 100.0%