ioki-mobility / kmp-passenger-api

Kotlin Multiplatform ioki Passenger API
MIT License
1 stars 1 forks source link

Document release process #10

Open StefMa opened 3 months ago

StefMa commented 3 months ago

Document

StefMa commented 1 month ago

Also document how to publish to maven local for (PR) testing...

StefMa commented 3 weeks ago

This is what I wrote so far:

## 📦 How to Release 

### 1. Check out the `main` Branch

   - Make sure you're on the `main` branch and have the latest changes:

     ```bash
     git checkout main
     git pull origin main

2. Update the Version in library/build.gradle.kts

3. Create a Git Tag and Push It

4. Trigger the Release Action

5. Sign in to Sonatype and Close the Staged Repo

6. Create a Release on GitHub

7. Bump the Version for Development

8. Push and Celebrate! 🎉💃

As Markdown: ## 📦 How to Release ### 1. Check out the `main` Branch - Make sure you're on the `main` branch and have the latest changes: ```bash git checkout main git pull origin main ``` ### 2. Update the Version in `library/build.gradle.kts` - Remove `-SNAPSHOT` from the version in `library/build.gradle.kts`. - Commit this change: ```bash git commit -m "Prepare next release" . ``` ### 3. Create a Git Tag and Push It - Tag the release version and push it: ```bash git tag x.y.z git push origin x.y.z ``` ### 4. Trigger the Release Action - This will kick off a GitHub action (`release.yml`) to release your library to a [Sonatype](https://s01.oss.sonatype.org/) staging repository. 📤 ### 5. Sign in to Sonatype and Close the Staged Repo - Head to [Sonatype](https://s01.oss.sonatype.org/) and sign in (credentials are in the Bitwarden Open Source Collection). - Search for the staged repo, click **Close**. - Once it's successfully **Closed**, click **Release** and check "Drop after release". ### 6. Create a Release on GitHub - After step 4 is complete, head to the GitHub release page and create a new release. 🎉 ### 7. Bump the Version for Development - Increment the **minor** version in `library/build.gradle.kts` and add `-SNAPSHOT` to mark it as a development version. - Commit this change: ```bash git commit -m "Next development version" . ``` ### 8. Push and Celebrate! 🎉💃 - Push your changes and take a moment to celebrate a job well done!