diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..1670510 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,47 @@ +name: Release + +on: + workflow_dispatch: + push: + tags: + - "v*" + +permissions: + contents: read + +jobs: + publish: + name: Publish to Maven Central + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: "11" + distribution: temurin + cache: maven + server-id: central + server-username: CENTRAL_TOKEN_USERNAME + server-password: CENTRAL_TOKEN_PASSWORD + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg-passphrase: GPG_PASSPHRASE + + - name: Build release artifacts + run: mvn --batch-mode clean verify -Dgpg.skip=true + + - name: Upload release artifacts + uses: actions/upload-artifact@v4 + with: + name: maven-artifacts + path: | + target/*.jar + target/*.pom + + - name: Publish to Maven Central + run: mvn --batch-mode deploy -DskipTests + env: + CENTRAL_TOKEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }} + CENTRAL_TOKEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} diff --git a/pom.xml b/pom.xml index dc5557e..1b485da 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 com.parseable @@ -11,7 +11,7 @@ temporal-parseable Temporal plugin that exports OpenTelemetry traces and logs directly to Parseable - https://github.com/parseablehq/temporal-plugin-java + https://github.com/parseablehq/parseable-temporal-java @@ -23,16 +23,16 @@ Parseable - engineering@parseable.com + hi@parseable.com Parseable https://parseable.com - scm:git:git://github.com/parseablehq/temporal-plugin-java.git - scm:git:ssh://github.com/parseablehq/temporal-plugin-java.git - https://github.com/parseablehq/temporal-plugin-java/tree/main + scm:git:git://github.com/parseablehq/parseable-temporal-java.git + scm:git:ssh://github.com/parseablehq/parseable-temporal-java.git + https://github.com/parseablehq/parseable-temporal-java/tree/main @@ -172,7 +172,9 @@ attach-sources - jar-no-fork + + jar-no-fork + @@ -183,7 +185,9 @@ attach-javadocs - jar + + jar + @@ -197,7 +201,9 @@ sign-artifacts verify - sign + + sign + @@ -206,11 +212,12 @@ org.sonatype.central central-publishing-maven-plugin - 0.7.0 + 0.11.0 true central true + published @@ -227,7 +234,9 @@ validate validate - check + + check +