Skip to content

Commit

Permalink
Yet another attempt of getting deploy to work
Browse files Browse the repository at this point in the history
  • Loading branch information
aaberg committed Mar 10, 2024
1 parent a0aa13e commit 98c6504
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Docker Compose Action
uses: isbang/[email protected]
- name: Docker Compose Action
uses: isbang/[email protected]
- name: Set up JDK 17 and Set up Maven Central Repository
Expand All @@ -22,12 +20,12 @@ jobs:
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
server-password: MAVEN_TOKEN
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: publish to maven central
run: mvn -P release --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_TOKEN: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }}
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@
<profiles>
<profile>
<id>release</id>
<distributionManagement>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<build>

<plugins>
Expand Down

0 comments on commit 98c6504

Please sign in to comment.