@@ -124,9 +124,9 @@ jobs:
124
124
with :
125
125
servers : |
126
126
[{
127
- "id": "sonatype-nexus-staging ",
128
- "username": "${{ secrets.SONATYPE_USERNAME }}",
129
- "password": "${{ secrets.SONATYPE_PASSWORD }}"
127
+ "id": "central ",
128
+ "username": "${{ secrets.MAVEN_CENTRAL_USERNAME }}",
129
+ "password": "${{ secrets.MAVEN_CENTRAL_PASSWORD }}"
130
130
}]
131
131
132
132
- name : Create local staging directory
@@ -148,7 +148,7 @@ jobs:
148
148
uses : actions/upload-artifact@v4
149
149
with :
150
150
name : ${{ matrix.setup }}-local-staging
151
- path : ~/local -staging
151
+ path : ./prepare-release-workspace/target/central -staging
152
152
if-no-files-found : error
153
153
include-hidden-files : true
154
154
@@ -221,20 +221,20 @@ jobs:
221
221
with :
222
222
servers : |
223
223
[{
224
- "id": "sonatype-nexus-staging ",
225
- "username": "${{ secrets.SONATYPE_USERNAME }}",
226
- "password": "${{ secrets.SONATYPE_PASSWORD }}"
224
+ "id": "central ",
225
+ "username": "${{ secrets.MAVEN_CENTRAL_USERNAME }}",
226
+ "password": "${{ secrets.MAVEN_CENTRAL_PASSWORD }}"
227
227
}]
228
228
229
229
- name : Stage release to local staging directory
230
230
working-directory : prepare-release-workspace
231
- run : ./mvnw --file pom.xml -Pstage -am -pl boringssl-static clean javadoc:jar package gpg:sign org.sonatype.plugins:nexus-staging -maven-plugin:deploy -DnexusUrl=https://oss.sonatype.org -DserverId=sonatype-nexus-staging -DaltStagingDirectory=local-staging -DskipRemoteStaging=true -DskipTests=true -D'checkstyle.skip=true'
231
+ run : ./mvnw --file pom.xml -Pstage -am -pl boringssl-static clean javadoc:jar package gpg:sign org.sonatype.central:central-publishing -maven-plugin:publish -DskipTests=true -D'checkstyle.skip=true'
232
232
233
233
- name : Upload local staging directory
234
234
uses : actions/upload-artifact@v4
235
235
with :
236
236
name : windows-x86_64-local-staging
237
- path : prepare-release-workspace/boringssl-static/local -staging
237
+ path : ./ prepare-release-workspace/target/central -staging
238
238
if-no-files-found : error
239
239
include-hidden-files : true
240
240
@@ -298,9 +298,9 @@ jobs:
298
298
with :
299
299
servers : |
300
300
[{
301
- "id": "sonatype-nexus-staging ",
302
- "username": "${{ secrets.SONATYPE_USERNAME }}",
303
- "password": "${{ secrets.SONATYPE_PASSWORD }}"
301
+ "id": "central ",
302
+ "username": "${{ secrets.MAVEN_CENTRAL_USERNAME }}",
303
+ "password": "${{ secrets.MAVEN_CENTRAL_PASSWORD }}"
304
304
}]
305
305
306
306
# Cache .m2/repository
@@ -322,21 +322,21 @@ jobs:
322
322
323
323
- name : Stage snapshots to local staging directory
324
324
working-directory : ./prepare-release-workspace/
325
- run : ./mvnw -B -ntp -am -pl openssl-dynamic,boringssl-static clean javadoc:jar package gpg:sign org.sonatype.plugins:nexus-staging -maven-plugin:deploy -DnexusUrl=https://oss.sonatype.org -DserverId=sonatype-nexus-staging -DaltStagingDirectory=$HOME/local-staging -DskipRemoteStaging=true - DskipTests=true -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} -Dgpg.keyname=${{ secrets.GPG_KEYNAME }}
325
+ run : ./mvnw -B -ntp -am -pl openssl-dynamic,boringssl-static clean javadoc:jar package gpg:sign org.sonatype.central:central-publishing -maven-plugin:publish - DskipTests=true
326
326
327
327
- name : Upload local staging directory
328
328
uses : actions/upload-artifact@v4
329
329
with :
330
330
name : ${{ matrix.setup }}-local-staging
331
- path : ~/local -staging
331
+ path : ./prepare-release-workspace/target/central -staging
332
332
if-no-files-found : error
333
333
include-hidden-files : true
334
334
335
335
- name : Rollback release on failure
336
336
working-directory : ./prepare-release-workspace/
337
337
if : ${{ failure() }}
338
338
# Rollback the release in case of an failure
339
- run : ./.github/scripts/release_rollback.ps1 release.properties netty/netty-tcnative main
339
+ run : bash ./.github/scripts/release_rollback.sh release.properties netty/netty-tcnative main
340
340
341
341
deploy-staged-release :
342
342
runs-on : ubuntu-latest
@@ -391,9 +391,9 @@ jobs:
391
391
with :
392
392
servers : |
393
393
[{
394
- "id": "sonatype-nexus-staging ",
395
- "username": "${{ secrets.SONATYPE_USERNAME }}",
396
- "password": "${{ secrets.SONATYPE_PASSWORD }}"
394
+ "id": "central ",
395
+ "username": "${{ secrets.MAVEN_CENTRAL_USERNAME }}",
396
+ "password": "${{ secrets.MAVEN_CENTRAL_PASSWORD }}"
397
397
}]
398
398
399
399
# Hardcode the staging artifacts that need to be downloaded.
@@ -436,24 +436,27 @@ jobs:
436
436
437
437
- name : Copy previous build artifacts to local maven repository
438
438
working-directory : ./prepare-release-workspace/
439
- run : bash ./.github/scripts/install_local_staging .sh ~/.m2/repository ~/windows-x86_64-local-staging/staging ~/macos-aarch64-local-staging/staging ~/macos-x86_64-local-staging/staging ~/centos7-aarch64-local-staging/staging ~/debian7-x86_64-local-staging/staging ~/centos6-x86_64-local-staging/ staging
439
+ run : bash ./.github/scripts/local_staging_install_release .sh ~/.m2/repository ~/windows-x86_64-local-staging ~/macos-aarch64-local-staging ~/macos-x86_64-local-staging ~/centos7-aarch64-local-staging ~/debian7-x86_64-local-staging ~/centos6-x86_64-local-staging
440
440
441
441
- name : Generate uber jar and deploy to local staging.
442
442
working-directory : ./prepare-release-workspace/
443
443
run : |
444
444
mkdir -p ~/uber-local-staging
445
- ./mvnw -B --file pom.xml -Puber-snapshot -pl boringssl-static clean package gpg:sign org.sonatype.plugins:nexus-staging -maven-plugin:deploy -DnexusUrl=https://oss.sonatype.org -DserverId=sonatype-nexus-staging -DaltStagingDirectory=$HOME/uber-local-staging -DskipRemoteStaging=true -DskipTests=true
445
+ ./mvnw -B --file pom.xml -Puber-staging -pl boringssl-static clean package gpg:sign org.sonatype.central:central-publishing -maven-plugin:publish -DskipTests=true
446
446
447
447
# This step takes care of merging all the previous staged repositories in a way that will allow us to deploy
448
448
# all together with one maven command.
449
449
- name : Merge staging repositories
450
450
working-directory : ./prepare-release-workspace/
451
- run : bash ./.github/scripts/merge_local_staging.sh /home/runner/local-staging/staging ~/windows-x86_64-local-staging/staging ~/macos-aarch64-local-staging/staging ~/macos-x86_64-local-staging/staging ~/centos7-aarch64-local-staging/staging ~/debian7-x86_64-local-staging/staging ~/centos6-x86_64-local-staging/staging ~/uber-local-staging/staging
451
+ run : bash ./.github/scripts/local_staging_merge_release.sh ~/local-staging ~/windows-x86_64-local-staging ~/macos-aarch64-local-staging ~/macos-x86_64-local-staging ~/centos7-aarch64-local-staging ~/debian7-x86_64-local-staging ~/centos6-x86_64-local-staging ~/uber-local-staging
452
+
453
+ - name : Create bundle
454
+ working-directory : ./prepare-release-workspace/
455
+ run : bash ./.github/scripts/bundle_create.sh ~/central-bundle.zip ~/local-staging/
452
456
453
- - name : Deploy local staged artifacts
457
+ - name : Upload bundle to maven central
454
458
working-directory : ./prepare-release-workspace/
455
- # If we don't want to close the repository we can add -DskipStagingRepositoryClose=true
456
- run : ./mvnw -B --file pom.xml org.sonatype.plugins:nexus-staging-maven-plugin:deploy-staged -DnexusUrl=https://oss.sonatype.org -DserverId=sonatype-nexus-staging -DaltStagingDirectory=$HOME/local-staging -DskipStagingRepositoryClose=true
459
+ run : bash ./.github/scripts/bundle_upload.sh ~/central-bundle.zip ${{ secrets.MAVEN_CENTRAL_USERNAME }} ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
457
460
458
461
- name : Rollback release on failure
459
462
working-directory : ./prepare-release-workspace/
0 commit comments