From 4be1f068c2961e70b7887f64ef1bd8e11391960d Mon Sep 17 00:00:00 2001 From: dekm Date: Wed, 27 Mar 2024 11:29:41 +0100 Subject: [PATCH] attempt to publish to maven through jitpack --- .github/workflows/jitpack-release.yml | 37 ++ pax-sdk/pom.xml | 662 +++++++------------------- 2 files changed, 201 insertions(+), 498 deletions(-) create mode 100644 .github/workflows/jitpack-release.yml diff --git a/.github/workflows/jitpack-release.yml b/.github/workflows/jitpack-release.yml new file mode 100644 index 0000000..52cdb8a --- /dev/null +++ b/.github/workflows/jitpack-release.yml @@ -0,0 +1,37 @@ +name: Maven Release Package + +on: + release: + types: [created] + workflow_dispatch: + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + # Optional: Import GPG Key for signing + - name: Import GPG Key + if: github.event_name == 'release' # Only for release events + uses: crazy-max/ghaction-import-gpg@v3 + with: + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + passphrase: ${{ secrets.GPG_PASSPHRASE }} + + - name: Build with Maven + run: mvn clean install -B --file pax-sdk/pom.xml + + # Optionally, add a step to tag your release + - name: Create Tag + if: github.event_name == 'release' + run: git tag ${{ github.event.release.tag_name }} && git push origin ${{ github.event.release.tag_name }} diff --git a/pax-sdk/pom.xml b/pax-sdk/pom.xml index 5a7a56f..11b8355 100644 --- a/pax-sdk/pom.xml +++ b/pax-sdk/pom.xml @@ -1,5 +1,6 @@ - + 4.0.0 org.unigrid pax-sdk @@ -29,7 +30,20 @@ scm:git:ssh://github.com:unigrid-project/pax-sdk-java.git + + + jitpack.io + https://jitpack.io + + + + + + com.github.unigrid-project + pax-sdk-java + 0.0.1 + com.google.api.grpc @@ -108,7 +122,7 @@ - + @@ -163,7 +177,7 @@ - + @@ -189,510 +203,171 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --> + + @@ -705,7 +380,7 @@ protobuf-maven-plugin 0.6.1 - + process-sources @@ -713,7 +388,7 @@ compile-custom - + ${project.build.directory}/proto @@ -841,7 +516,7 @@ sign - ${env.GPG_PASSPHRASE} + ${env.GPG_PASSPHRASE} @@ -870,16 +545,7 @@ - - org.sonatype.central - central-publishing-maven-plugin - 0.4.0 - true - - central - true - - + \ No newline at end of file