Skip to content

Commit d9631e4

Browse files
SK-2276: update beta release workflow for v3 release
1 parent 35cb954 commit d9631e4

File tree

2 files changed

+30
-6
lines changed

2 files changed

+30
-6
lines changed

.github/workflows/beta-release.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,10 @@ jobs:
77
uses: ./.github/workflows/shared-build-and-deploy.yml
88
with:
99
ref: ${{ github.ref_name }}
10-
server-id: ossrh
10+
server-id: central
1111
profile: maven-central
1212
tag: 'beta'
13+
module: 'v3'
1314
secrets:
1415
server-username: ${{ secrets.CENTRAL_PUBLISHER_PORTAL_USERNAME }}
1516
server-password: ${{ secrets.CENTRAL_PUBLISHER_PORTAL_PASSWORD }}
16-
gpg-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
17-
gpg-passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
18-
skyflow-credentials: ${{ secrets.SKYFLOW_CREDENTIALS }} >> .env
19-
test-expired-token: ${{ secrets.TEST_EXPIRED_TOKEN }} >> .env
20-
test-reusable-token: ${{ secrets.TEST_REUSABLE_TOKEN }} >> .env

pom.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,5 +275,33 @@
275275
</snapshotRepository>
276276
</distributionManagement>
277277
</profile>
278+
<profile>
279+
<id>maven-central</id>
280+
<distributionManagement>
281+
<repository>
282+
<id>central</id>
283+
<url>https://central.sonatype.com/api/v1/publisher/upload</url>
284+
</repository>
285+
<snapshotRepository>
286+
<id>central-snapshots</id>
287+
<url>https://central.sonatype.com/api/v1/publisher/upload</url>
288+
</snapshotRepository>
289+
</distributionManagement>
290+
<build>
291+
<plugins>
292+
<plugin>
293+
<groupId>org.sonatype.central</groupId>
294+
<artifactId>central-publishing-maven-plugin</artifactId>
295+
<version>0.4.0</version>
296+
<extensions>true</extensions>
297+
<configuration>
298+
<publishingServerId>central</publishingServerId>
299+
<tokenAuth>true</tokenAuth>
300+
<autoPublish>true</autoPublish>
301+
</configuration>
302+
</plugin>
303+
</plugins>
304+
</build>
305+
</profile>
278306
</profiles>
279307
</project>

0 commit comments

Comments
 (0)