Skip to content

Commit 96c6a3b

Browse files
authored
Merge pull request #219 from secure-software-engineering/ci/snapshotrelease
ci snapshot release
2 parents 507e850 + 9dec669 commit 96c6a3b

File tree

3 files changed

+14
-18
lines changed

3 files changed

+14
-18
lines changed

.github/workflows/approve_dependabotifications.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
run: gh pr merge --auto --merge "$PR_URL"
2323
env:
2424
PR_URL: ${{github.event.pull_request.html_url}}
25-
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
25+
GH_TOKEN: ${{secrets.PAT_AUTO_MERGE}}

.github/workflows/deploy.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,24 @@ env:
99
jobs:
1010
deployment:
1111
runs-on: ubuntu-latest
12+
name: Deploy to Maven
1213
environment: Deploy
1314
steps:
1415
- name: Checkout source code
1516
uses: actions/checkout@v4
16-
# Sets up Java version
17-
- name: Set up Java
18-
uses: actions/setup-java@v4
17+
18+
- name: Deploy version
19+
uses: secure-software-engineering/actions/deployment/maven-deployment@maven-central-deploy
1920
with:
20-
distribution: adopt
21-
java-package: jdk
21+
java-distribution: adopt
2222
java-version: 11
23-
server-id: ossrh # must match the serverId configured for the nexus-staging-maven-plugin
24-
server-username: OSSRH_USERNAME # Env var that holds your OSSRH user name
25-
server-password: OSSRH_PASSWORD # Env var that holds your OSSRH user pw
26-
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # Substituted with the value stored in the referenced secret
27-
gpg-passphrase: SIGN_KEY_PASS # Env var that holds the key's passphrase
28-
- name: Deploy Boomerang
29-
run: mvn -B -U clean deploy -Pdeployment -DskipTests
30-
env:
31-
SIGN_KEY_PASS: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
32-
OSSRH_USERNAME: ${{ secrets.SONATYPE_USER }}
33-
OSSRH_PASSWORD: ${{ secrets.SONATYPE_PW }}
23+
server-id: central
24+
server-username: ${{ secrets.MAVEN_USERNAME }}
25+
server-password: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
26+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
27+
gpg-passphrase: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
28+
mvn-cli-args: '-DskipTests -Pdeployment'
29+
deploy-mode: release
3430

3531
snapshot-version:
3632
runs-on: ubuntu-latest

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,9 @@
363363
<version>0.8.0</version>
364364
<extensions>true</extensions>
365365
<configuration>
366+
<deploymentName>${project.artifactId} ${project.version}</deploymentName>
366367
<!-- Same id as in the deployment workflow -->
367368
<publishingServerId>central</publishingServerId>
368-
<centralSnapshotsUrl>https://s01.oss.sonatype.org/content/repositories/snapshots/</centralSnapshotsUrl>
369369
<waitUntil>published</waitUntil>
370370
<autoPublish>true</autoPublish>
371371
</configuration>

0 commit comments

Comments
 (0)