Skip to content

Commit 7b46412

Browse files
Use Package List file as artifact vs. checking out whole repo
1 parent 9ba9f70 commit 7b46412

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,15 @@ jobs:
201201
dotnet tool install --global dotnet-dump
202202
dotnet-dump analyze ${{ steps.detect-dump.outputs.DUMP_FILE }} -c "clrstack" -c "pe -lines" -c "exit"
203203
204+
- name: Upload Package List
205+
uses: actions/upload-artifact@v3
206+
# TODO: if: ${{ env.IS_PR == false }}
207+
with:
208+
name: nuget-list
209+
if-no-files-found: error
210+
path: |
211+
${{ github.workspace }}/.github/workflows/SignClientFileList.txt
212+
204213
# if we're not doing a PR build then we upload our packages so we can sign as a separate job.
205214
- name: Upload Packages as Artifacts
206215
uses: actions/upload-artifact@v3
@@ -224,15 +233,17 @@ jobs:
224233
platform: [WinUI2, WinUI3]
225234

226235
steps:
227-
# TODO: Just upload/download file list file to build artifact as in example?
228-
- name: Checkout Repository
229-
uses: actions/checkout@v3
230-
231236
- name: Install .NET SDK v${{ env.DOTNET_VERSION }}
232237
uses: actions/setup-dotnet@v3
233238
with:
234239
dotnet-version: ${{ env.DOTNET_VERSION }}
235240

241+
- name: Download Package List
242+
uses: actions/download-artifact@v3
243+
with:
244+
name: nuget-list
245+
path: ./
246+
236247
- name: Download built packages for ${{ matrix.platform }}
237248
uses: actions/download-artifact@v3
238249
with:
@@ -247,7 +258,7 @@ jobs:
247258
./tools/sign code azure-key-vault
248259
**/*.nupkg
249260
--base-directory "${{ github.workspace }}/packages"
250-
--file-list "${{ github.workspace }}/.github/workflows/SignClientFileList.txt"
261+
--file-list "${{ github.workspace }}/SignClientFileList.txt"
251262
--timestamp-url "http://timestamp.digicert.com"
252263
--publisher-name ".NET Foundation"
253264
--description "Windows Community Toolkit"

0 commit comments

Comments
 (0)