Skip to content

Commit 675905f

Browse files
committed
Update artifact paths in CI workflow
Standardized artifact upload and download paths in the CI workflow to use explicit workspace references. This improves clarity and consistency, and removes unnecessary multi-line path definitions.
1 parent bfad004 commit 675905f

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/ci-build.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
uses: actions/upload-artifact@v5
5555
with:
5656
name: msbuild_log_${{matrix.configuration}}
57-
path: msbuild.binlog
57+
path: ${{ github.workspace }}/msbuild.binlog
5858
if-no-files-found: error
5959

6060
# Run tests
@@ -79,19 +79,17 @@ jobs:
7979
if: ${{ env.IS_PR == 'false' && matrix.configuration == 'Release' }}
8080
with:
8181
name: nuget-list-dotnet
82+
path: ${{ github.workspace }}/.github/workflows/SignClientFileList.txt
8283
if-no-files-found: error
83-
path: |
84-
${{ github.workspace }}/.github/workflows/SignClientFileList.txt
8584

8685
# If we're not doing a PR build (or it's a PR from a fork) then we upload our packages so we can sign as a separate job or have available to test
8786
- name: Upload packages artifacts
8887
uses: actions/upload-artifact@v5
8988
if: ${{ (env.IS_PR == 'false' || github.event.pull_request.head.repo.full_name != github.repository) && matrix.configuration == 'Release' }}
9089
with:
9190
name: nuget-packages-dotnet
91+
path: ${{ github.workspace }}/bin/nupkg/*.nupkg
9292
if-no-files-found: error
93-
path: |
94-
./*.nupkg
9593

9694
# Sign the packages for release.
9795
# Note: here and below we're explicitly repeating the conditions, rather than using 'env.'.
@@ -113,13 +111,13 @@ jobs:
113111
uses: actions/download-artifact@v5
114112
with:
115113
name: nuget-list-dotnet
116-
path: ./
114+
path: ${{ github.workspace }}
117115

118116
- name: Download built packages for .NCT
119117
uses: actions/download-artifact@v5
120118
with:
121119
name: nuget-packages-dotnet
122-
path: ./packages
120+
path: ${{ github.workspace }}/packages
123121

124122
- name: Install Signing Tool
125123
run: dotnet tool install --tool-path ./tools sign --version 0.9.1-beta.25379.1
@@ -153,9 +151,8 @@ jobs:
153151
if: ${{ env.IS_RELEASE == 'true' }}
154152
with:
155153
name: signed-nuget-packages-dotnet
154+
path: ${{ github.workspace }}/packages/**/*.nupkg
156155
if-no-files-found: error
157-
path: |
158-
${{ github.workspace }}/packages/**/*.nupkg
159156

160157
# Push official packages to NuGet
161158
release:

0 commit comments

Comments
 (0)