Skip to content

Commit 4f74d56

Browse files
committed
Use the correct working directory during staging of windows artifacts
1 parent e9de551 commit 4f74d56

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/ci-release-4.2.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,11 @@ jobs:
273273
# failures sometimes due the fact that not enough memory could be reserved.
274274
RUSTUP_UNPACK_RAM: 134217728 # Use 128 MiB
275275
steps:
276-
- uses: actions/checkout@v4
276+
- name: Download release-workspace
277+
uses: actions/download-artifact@v4
278+
with:
279+
name: prepare-release-workspace
280+
path: ${{ github.workspace }}/prepare-release-workspace
277281

278282
- name: Import GPG key
279283
id: import_gpg
@@ -336,13 +340,14 @@ jobs:
336340
stage-release-windows-x86_64-maven-cache-
337341
338342
- name: Stage snapshots to local staging directory
339-
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=$HOME/local-staging -DskipRemoteStaging=true -DskipTests=true
343+
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
340345

341346
- name: Upload local staging directory
342347
uses: actions/upload-artifact@v4
343348
with:
344349
name: windows-x86_64-local-staging
345-
path: ~/local-staging
350+
path: /local-staging
346351
if-no-files-found: error
347352
include-hidden-files: true
348353

0 commit comments

Comments
 (0)