Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1.34 KB

Releasing.md

File metadata and controls

27 lines (17 loc) · 1.34 KB

Releasing

(Note: This document is a reference for people with push access to Moya and to CocoaPods.)

Releasing a new version of Moya has been automated as much as possible. There are a few prerequisite steps:

  1. Generate a GitHub personal access token
  2. Run the following command: echo "machine api.github.com login you@yourgithublogin.com password THE_BRAND_NEW_TOKEN" > ~/.netrc. This lets the automated release script access the GitHub API authorized as you.
  3. Then run chmod 600 ~/.netrc.
  4. Make sure you have a registered CocoaPods session (run pod trunk register you@youremailaddress.com to make one if not).

Note: to make a release, you need at least one entry in the Next section of the changelog.

To make a release:

  1. Pull latest from master and make sure your git is clean (the script will fail if it's not).
  2. Run rake release["X.Y.Z"].
  3. Grab a 🍵 or ☕.
  4. Make sure everything went smoothly.

What you'll need to do manually afterwards (if you released a major version):

  1. Update the Swift Package Manager instructions in the Readme to use the release you just made public.

If anything goes wrong, don't panic! Get in touch with someone else who has released, or Ash.