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 diff --git a/README.md b/README.md index b6f7798..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,11 +35,11 @@ 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)] +### :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..0e94765 100644 --- a/resultflow/CHANGELOG.md +++ b/resultflow/CHANGELOG.md @@ -1,3 +1,10 @@ ## Unreleased +- *No changes* + +## [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 8568f3b..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: @@ -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