Skip to content

Commit

Permalink
Merge branch 'master' of github.com:unigrid-project/pax-sdk-java
Browse files Browse the repository at this point in the history
  • Loading branch information
Fim-84 committed Mar 26, 2024
2 parents ca7f4a1 + bef0c54 commit 72d19ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v3
Expand All @@ -19,16 +20,20 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
server-id: ossrh # Server ID from your settings.xml
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # Imported from GitHub secrets
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} # Imported from GitHub secrets

- name: Import GPG Key
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 -P release --settings pax-sdk/settings.xml --file pax-sdk/pom.xml
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: mvn clean install -B -P release --file pax-sdk/pom.xml

- name: Sign and Deploy to OSSRH
run: mvn deploy -B -P release --settings pax-sdk/settings.xml --file pax-sdk/pom.xml
env:
GPG_EXECUTABLE: gpg
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
2 changes: 1 addition & 1 deletion pax-sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<version>3.1.0</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand Down

0 comments on commit 72d19ba

Please sign in to comment.