From a65ff8cba4b0cc08ba7bad52f64bdff5452ec98c Mon Sep 17 00:00:00 2001 From: Osip Fatkullin Date: Thu, 1 Aug 2024 13:31:43 +0200 Subject: [PATCH 1/4] resultflow: 0.1.0 --- README.md | 2 +- release.sh | 2 -- resultflow/CHANGELOG.md | 4 ++++ resultflow/README.md | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b6f7798..dc9f6ed 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Gears could be used together or alone. - [![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/kotlin?style=flat-square)][viewmodelevents-flow] - An implementation of ViewModelEvents via `Flow` - [![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/kotlin?style=flat-square)][viewmodelevents-livedata] - An implementation of ViewModelEvents via `LiveData` -### :hourglass_flowing_sand: **[Result Flow](resultflow/)** [![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/resultflow?style=flat-square)] +### :hourglass_flowing_sand: **[Result Flow](resultflow/)** ![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/resultflow?style=flat-square) A couple of extensions to convert long operations into `Flow>`. diff --git a/release.sh b/release.sh index c6e1e0f..23f9ee0 100755 --- a/release.sh +++ b/release.sh @@ -118,8 +118,6 @@ if [[ "$input" != "yes" ]]; then exit 0 fi - - # 5. Push changes, trigger release on CI, and give a link to open PR echo echo "⏳ Pushing the changes to the remote repository..." diff --git a/resultflow/CHANGELOG.md b/resultflow/CHANGELOG.md index 81199b7..4bce655 100644 --- a/resultflow/CHANGELOG.md +++ b/resultflow/CHANGELOG.md @@ -1,3 +1,7 @@ ## Unreleased +- *No changes* + +## 0.1.0 (2024-08-01) + Initial release diff --git a/resultflow/README.md b/resultflow/README.md index 8568f3b..3fafca3 100644 --- a/resultflow/README.md +++ b/resultflow/README.md @@ -27,7 +27,7 @@ repositories { } dependencies { - implementation("com.redmadrobot.gears:resultflow:") + implementation("com.redmadrobot.gears:resultflow:0.1.0") } ``` @@ -89,5 +89,5 @@ Merge requests are welcome. For major changes, open an issue first to discuss what you would like to change. -[mavenCentral]: https://search.maven.org/artifact/com.redmadrobot.gears/resultflow +[mavenCentral]: https://central.sonatype.com/artifact/com.redmadrobot.gears/resultflow [license]: ../LICENSE From eb5f57603e8c11ad63442ac7b1327aed6b5e9a35 Mon Sep 17 00:00:00 2001 From: Osip Fatkullin Date: Thu, 1 Aug 2024 13:40:53 +0200 Subject: [PATCH 2/4] resultflow: Add link to v0.1.0 --- resultflow/CHANGELOG.md | 5 ++++- resultflow/README.md | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/resultflow/CHANGELOG.md b/resultflow/CHANGELOG.md index 4bce655..0e94765 100644 --- a/resultflow/CHANGELOG.md +++ b/resultflow/CHANGELOG.md @@ -2,6 +2,9 @@ - *No changes* -## 0.1.0 (2024-08-01) +## [0.1.0] (2024-08-01) Initial release + + +[0.1.0]: https://github.com/RedMadRobot/gears-android/compare/9ada4423...resultflow-v0.1.0 diff --git a/resultflow/README.md b/resultflow/README.md index 3fafca3..263d090 100644 --- a/resultflow/README.md +++ b/resultflow/README.md @@ -3,6 +3,9 @@ [![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/resultflow?style=flat-square)][mavenCentral] [![License](https://img.shields.io/github/license/RedMadRobot/gears-android?style=flat-square)][license] +A couple of extensions to convert long operations into `Flow>`. +Allows handling such operations in functional way and provides single point to handle `Pending`, `Success` and `Failure` states. + --- @@ -14,9 +17,6 @@ -A couple of extensions to convert long operations into `Flow>`. -Allows handling such operations in functional way and provides single point to handle `Pending`, `Success` and `Failure` states. - ## Installation Add the dependency: From 784874dab9c84a541c0f1ff182c341cb36c81a75 Mon Sep 17 00:00:00 2001 From: Osip Fatkullin Date: Thu, 1 Aug 2024 13:46:42 +0200 Subject: [PATCH 3/4] ci: Create GutHub release automatically --- .github/workflows/main.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 02ae15e..dfd05a7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,7 +54,11 @@ jobs: run: | tag=${GITHUB_REF#refs/tags/} module=$(./scripts/get-module-name.sh "$tag") + module_path=${module#:} + module_path=${module_path//://} echo "module=$module" >> "$GITHUB_OUTPUT" + echo "module_path=$module_path" >> "$GITHUB_OUTPUT" + echo "name=${tag/-v/ }" >> "$GITHUB_OUTPUT" - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 @@ -68,3 +72,15 @@ jobs: ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }} ORG_GRADLE_PROJECT_githubPackagesUsername: ${{ github.actor }} ORG_GRADLE_PROJECT_githubPackagesPassword: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract release notes + uses: ffurrer2/extract-release-notes@v2 + with: + changelog_file: ${{ steps.parse-tag.outputs.module_path }}/CHANGELOG.md + release_notes_file: RELEASE_NOTES.md + + - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + with: + name: ${{ steps.parse-tag.outputs.name }} + body_path: RELEASE_NOTES.md From 94a7cca721d92e35112077796add07dc94864764 Mon Sep 17 00:00:00 2001 From: Osip Fatkullin Date: Thu, 1 Aug 2024 14:06:34 +0200 Subject: [PATCH 4/4] docs: Fix labels on badges --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index dc9f6ed..1bcce45 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ Gears could be used together or alone. ### :gear: **[Gears](gears/)** -- [![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/gears-compose?style=flat-square)][gears-compose] — A set of gears for Jetpack Compose -- [![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/kotlin?style=flat-square)][gears-kotlin] — A set of gears for Kotlin +- [![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/gears-compose?style=flat-square&label=gears-compose)][gears-compose] — A set of gears for Jetpack Compose +- [![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/kotlin?style=flat-square&label=gears-kotlin)][gears-kotlin] — A set of gears for Kotlin ### :hammer_and_wrench: **[red_mad_robot Android KTX](ktx/)** @@ -35,9 +35,9 @@ Gears could be used together or alone. ### :mag_right: **[ViewModelEvents](viewmodelevents/)** -- [![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/kotlin?style=flat-square)][viewmodelevents-compose] - A set of extensions for dealing with ViewModelEvents inside `@Composable` functions -- [![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/kotlin?style=flat-square)][viewmodelevents-flow] - An implementation of ViewModelEvents via `Flow` -- [![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/kotlin?style=flat-square)][viewmodelevents-livedata] - An implementation of ViewModelEvents via `LiveData` +- [![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/kotlin?style=flat-square&label=viewmodelevents-compose)][viewmodelevents-compose] — A set of extensions for dealing with ViewModelEvents inside `@Composable` functions +- [![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/kotlin?style=flat-square&label=viewmodelevents-flow)][viewmodelevents-flow] — An implementation of ViewModelEvents via `Flow` +- [![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/kotlin?style=flat-square&label=viewmodelevents-livedata)][viewmodelevents-livedata] — An implementation of ViewModelEvents via `LiveData` ### :hourglass_flowing_sand: **[Result Flow](resultflow/)** ![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/resultflow?style=flat-square)