From 845c569af89ce5a582b814cf41136d87f673511e Mon Sep 17 00:00:00 2001 From: Jens Klingenberg Date: Fri, 6 Oct 2023 22:34:40 +0200 Subject: [PATCH] Code cleanup --- .github/workflows/publish.yml | 2 +- RELEASING.md | 21 ++++++++++++--------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d2513d194..344d1a216 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,7 +19,7 @@ jobs: - uses: gradle/gradle-build-action@v2 - name: Publish release - run: ./gradlew clean :ktorfit-annotations:publishAllPublicationsToMavenCentralRepository :ktorfit-ksp:publishAllPublicationsToMavenCentralRepository :ktorfit-lib:publishAllPublicationsToMavenCentralRepository :ktorfit-lib-common:publishAllPublicationsToMavenCentralRepository :compiler-plugin:publishAllPublicationsToMavenCentralRepository + run: ./gradlew clean :ktorfit-annotations:publishAllPublicationsToMavenCentralRepository :ktorfit-ksp:publishAllPublicationsToMavenCentralRepository :ktorfit-lib:publishAllPublicationsToMavenCentralRepository :ktorfit-lib-common:publishAllPublicationsToMavenCentralRepository :compiler-plugin:publishAllPublicationsToMavenCentralRepository :ktorfit-converters:call:publishAllPublicationsToMavenCentralRepository :ktorfit-converters:flow:publishAllPublicationsToMavenCentralRepository env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} diff --git a/RELEASING.md b/RELEASING.md index c3308a844..42cb41903 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -1,13 +1,16 @@ Releasing ========= - 1. Change the version in `gradle.properties` to a non-SNAPSHOT version. - 2. Update the `CHANGELOG.md` for the impending release. - 3. `git commit -am "Prepare for release X.Y.Z."` (where X.Y.Z is the new version) - 4. `git tag -a X.Y.Z -m "Version X.Y.Z"` (where X.Y.Z is the new version) - 5. `./gradlew clean publish --no-daemon --no-parallel && ./gradlew closeAndReleaseRepository` - 6. Update the `gradle.properties` to the next SNAPSHOT version. - 7. `git commit -am "Prepare next development version."` - 8. `git push && git push --tags` +# Publish new version -//publishAllPublicationsToMavenCentralRepository \ No newline at end of file +1. Create new branch `release/X.Y.Z` from `master` branch +2. Update **ktorfit** version inside `gradle/libs.versions.toml` +3. Update Compatibility table in Readme.md +4. Update ktorfit release version in mkdocs.yml +5. `git commit -am "Release X.Y.Z."` (where X.Y.Z is the new version) +6. Push and create a PR to the `master` branch +7. When all checks successful, run GitHub Action `Publish Release` from your branch +8. Set the Git tag `git tag -a X.Y.Z -m "X.Y.Z"` (where X.Y.Z is the new version) +9. Merge the PR +10. Create a new release with for the Tag on GitHub +11. Put the relevant changelog in the release description \ No newline at end of file