Skip to content

Commit 0c5d91d

Browse files
authored
Merge pull request #2054 from yue9944882/snapshot-job-pt3
Fixes snapshot job pt3
2 parents 8d3f32f + 830bd51 commit 0c5d91d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/snapshot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,18 @@ jobs:
1818
with:
1919
distribution: 'temurin'
2020
java-version: 8.0.x
21+
server-id: ossrh
22+
server-username: OSSRH_USERNAME
23+
server-password: OSSRH_TOKEN
2124
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
2225
gpg-passphrase: GPG_PASSPHRASE
26+
- name: Assert Snapshot Version
27+
run: |
28+
./mvnw clean install -Dmaven.test.skip=true
29+
./mvnw -q \
30+
-Dexec.executable=echo \
31+
-Dexec.args='${project.version}' \
32+
exec:exec | perl -ne 'die unless m/.*-SNAPSHOT/'
2333
- name: Publish to Apache Maven Central
2434
run: ./mvnw deploy
2535
env:

0 commit comments

Comments
 (0)