Skip to content

Commit d916618

Browse files
Add OSSRH snapshots
1 parent 003481e commit d916618

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/push.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ jobs:
3737
with:
3838
distribution: "temurin"
3939
java-version: 11
40-
- name: Deploy to GitHub
40+
- name: OSSRH Snapshot
41+
run: mvn deploy -Possrh
42+
env:
43+
GITHUB_TOKEN: ${{ github.token }}
44+
- name: GitHub Snapshot
4145
run: mvn deploy -Pgithub
4246
env:
4347
GITHUB_TOKEN: ${{ github.token }}

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -287,16 +287,16 @@
287287
</build>
288288
</profile>
289289
<profile>
290-
<id>deploy</id>
290+
<id>ossrh</id>
291291
<distributionManagement>
292-
<snapshotRepository>
293-
<id>ossrh</id>
294-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
295-
</snapshotRepository>
296292
<repository>
297293
<id>ossrh</id>
298294
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
299295
</repository>
296+
<snapshotRepository>
297+
<id>ossrh</id>
298+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
299+
</snapshotRepository>
300300
</distributionManagement>
301301
<build>
302302
<plugins>

0 commit comments

Comments
 (0)