Fix windows staging workflow for release · netty/netty@a0163a5 (original) (raw)

Original file line number Diff line number Diff line change
@@ -297,15 +297,6 @@ jobs:
297 297 key: ${{ secrets.SSH_PRIVATE_KEY_PEM }}
298 298 known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
299 299
300 - - uses: s4u/maven-settings-action@v3.0.0
301 -with:
302 -servers: |
303 - [{
304 - "id": "sonatype-nexus-staging",
305 - "username": "${{ secrets.SONATYPE_USERNAME }}",
306 - "password": "${{ secrets.SONATYPE_PASSWORD }}"
307 - }]
308 -
309 300 - name: Set up JDK 11
310 301 uses: actions/setup-java@v4
311 302 with:
@@ -339,9 +330,20 @@ jobs:
339 330 restore-keys: |
340 331 stage-release-windows-x86_64-maven-cache-
341 332
342 - - name: Stage snapshots to local staging directory
333 +
334 + - uses: s4u/maven-settings-action@v3.0.0
335 +with:
336 +servers: |
337 + [{
338 + "id": "sonatype-nexus-staging",
339 + "username": "${{ secrets.SONATYPE_USERNAME }}",
340 + "password": "${{ secrets.SONATYPE_PASSWORD }}"
341 + }]
342 +
343 +
344 + - name: Stage release to local staging directory
343 345 working-directory: ${{ github.workspace }}/prepare-release-workspace
344 -run: ./mvnw.cmd -B -ntp --file pom.xml 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
346 +run: ./mvnw.cmd -B -ntp --file pom.xml 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'
345 347
346 348 - name: Upload local staging directory
347 349 uses: actions/upload-artifact@v4