Skip to content

Commit 3996626

Browse files
authored
Merge pull request #119 from steleal/fix-nexus-repo
Fix nexus url and ci
2 parents 442b50c + 7e5edbf commit 3996626

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/release-build-workflow.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,17 @@ jobs:
3737
uses: actions/setup-java@v1
3838
with:
3939
java-version: 1.11
40-
server-id: sonatype-nexus-staging
40+
server-id: ossrh-staging-api
4141
server-username: MAVEN_USERNAME
4242
server-password: MAVEN_PASSWORD
4343
gpg-passphrase: MAVEN_GPG_PASSPHRASE
4444

4545
- name: Perform release
46-
run: mvn --batch-mode release:perform -Psign-artifacts
46+
run: |
47+
mvn --batch-mode release:perform -Psign-artifacts
48+
curl --request POST \
49+
--user "${{ MAVEN_USERNAME }}:${{ MAVEN_PASSWORD }}" \
50+
--url "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/manual/upload/defaultRepository/com.github.restream"
4751
env:
4852
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME_1 }}
4953
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD_1 }}

pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
<version>9</version>
99
</parent>
1010

11+
<repositories>
12+
<repository>
13+
<id>ossrh-staging-api</id>
14+
<name>Nexus Release Repository</name>
15+
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url>
16+
</repository>
17+
</repositories>
18+
1119
<groupId>com.github.restream</groupId>
1220
<artifactId>rx-connector</artifactId>
1321
<version>1.29-SNAPSHOT</version>

0 commit comments

Comments
 (0)