diff --git a/.github/workflows/publish-to-maven.yaml b/.github/workflows/publish-to-maven.yaml new file mode 100644 index 0000000..95d1a6c --- /dev/null +++ b/.github/workflows/publish-to-maven.yaml @@ -0,0 +1,27 @@ +name: Release + +on: + release: + types: [published] + +jobs: + publishToMaven: + environment: + name: "MavenCentral" + + runs-on: ubuntu-24.04 + timeout-minutes: 30 + + steps: + - uses: actions/checkout@v4 + + - name: Build library + run: ./gradlew :TopsortAnalytics:compileReleaseKotlin + + - name: Upload library + run: ./gradlew :TopsortAnalytics:publishAndReleaseToMavenCentral + env: + ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_IN_MEMORY_KEY }} + ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_IN_MEMORY_KEY_PASSWORD }} + ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_USERNAME }} + ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_PASSWORD }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 20a8c3a..57169ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 We follow the format used by [Open Telemetry](https://github.com/open-telemetry/opentelemetry-python/blob/main/CHANGELOG.md). -## Version 1.1.0-alpha.0 (2024-09-12) +## Version 1.1.1 (2024-10-11) + +### Added + +- Added CD support by @anonvt in ([#28](https://github.com/Topsort/topsort.kt/pull/28)) + +## Version 1.1.0 (2024-09-12) ### Added diff --git a/gradle.properties b/gradle.properties index a093ac8..fb217ba 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,11 +26,12 @@ android.nonTransitiveRClass=true topsort.sample.bearertoken=BEARER_TOKEN SONATYPE_HOST=CENTRAL_PORTAL +SONATYPE_AUTOMATIC_RELEASE=true RELEASE_SIGNING_ENABLED=true GROUP=com.topsort POM_ARTIFACT_ID=topsort-kt -VERSION_NAME=1.1.0 +VERSION_NAME=1.1.1 POM_NAME=Topsort Analytics POM_DESCRIPTION=An Android library for interacting with the Topsort APIs. We currently support sending events and making auction calls but will add more features shortly.