Skip to content

Commit

Permalink
add CD
Browse files Browse the repository at this point in the history
  • Loading branch information
anonvt committed Oct 11, 2024
1 parent 4d6d83e commit e103795
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 2 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/publish-to-maven.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release

on:
release:
types: [published]

env:
lockfile: pnpm-lock.yaml
node_version: "18"

jobs:
publishToMaven:
environment:
name: "MavenCentral"

runs-on: ubuntu-latest
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

- name: Make Gradle executable
run: chmod +x ./gradlew

- 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 }}
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

## 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

0 comments on commit e103795

Please sign in to comment.