In order to be able to release, you'll need an account at https://oss.sonatype.org/, and admin access to the repo.
To create an account, ask around the slack (if you're not working at Touchlab, this page isn't for you anyway. Sorry :( )
Steps:
- Make sure any PR's are applied and the release is ready to be published.
- Switch to the branch you'll release from, and
git pull
the latest. - Change the version in
gradle.properties
. - Git add/commit with message "Version .._"
- Push that change (directly to the branch, no PR).
- Open Actions, select the
deploy
workflow on the left. - Select
Run Workflow
on the right, pick the branch, and clickRun Workflow
. - When complete, log into https://oss.sonatype.org/.
- Select
Staging Profiles
on the left. - Visually review the pushed artifacts (briefly). Just get a sense that it looks correct.
- Select all and click
Close
. - Hit the Refresh button periodically. Not the browser refresh. There's a button on the page called "Refresh".
- It'll take a while. Eventually
Release
will be enabled. Click that. - To check status, look for the library in https://repo1.maven.org/maven2/co/touchlab/, find an artifact, and refresh until the version you just published shows up.