Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(sdk): add CD to kotlin SDK #28

Merged
merged 9 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/publish-to-maven.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release

on:
release:
types: [published]

jobs:
publishToMaven:
environment:
name: "MavenCentral"

runs-on: ubuntu-latest
anonvt marked this conversation as resolved.
Show resolved Hide resolved
timeout-minutes: 30

steps:
- uses: actions/checkout@v4

- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm

- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
anonvt marked this conversation as resolved.
Show resolved Hide resolved

- name: Make Gradle executable
run: chmod +x ./gradlew
anonvt marked this conversation as resolved.
Show resolved Hide resolved

- name: Upload library
run: ./gradlew :TopsortAnalytics:publishAndReleaseToMavenCentral
anonvt marked this conversation as resolved.
Show resolved Hide resolved
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 }}
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down