@@ -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 |
|
@@ -228,13 +228,13 @@ jobs: |
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 |
|
@@ -322,13 +322,13 @@ 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 |
|
@@ -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/install_local_staging.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 | 452 |
|
453 | | - - name: Deploy local staged artifacts |
| 453 | + - name: Create bundle |
454 | 454 | 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 |
| 455 | + run: bash ./.github/scripts/bundle_create.sh ~/central-bundle.zip ~/local-staging/ |
| 456 | + |
| 457 | + - name: Upload bundle to maven central |
| 458 | + working-directory: ./prepare-release-workspace/ |
| 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/ |
|