Skip to content

Commit 097ab6e

Browse files
committed
Fix the source folder for artifact publishing
1 parent 076f29a commit 097ab6e

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,6 @@ jobs:
2121
run: nuget restore SQLCallStackResolver.sln
2222
- name: Build SQLCallStackResolver
2323
run: msbuild SQLCallStackResolver.sln /p:Configuration=Release
24-
- name: Upload Artifact
25-
uses: actions/upload-artifact@v7
26-
with:
27-
name: SQLCallStackResolver
28-
path: |
29-
Target/Release
30-
NOTICE.md
31-
LICENSE
32-
!Target/Release/*.xml
33-
!Target/Release/Tests
34-
!Target/Release/ModernTests
3524
- name: Prep for running tests
3625
run: ./downloadsyms.ps1
3726
working-directory: Tests/TestCases
@@ -42,3 +31,16 @@ jobs:
4231
& "$env:VSINSTALLDIR/Common7/IDE/Extensions/TestPlatform/vstest.console.exe" ./SQLCalLStackResolver.Tests.dll /Parallel /logger:"console;verbosity=normal" /TestCaseFilter:"${{ github.event.inputs.testsfilter || 'TestCategory=Unit' }}"
4332
working-directory: Target/Release/Tests
4433
shell: powershell
34+
- name: Prepare release artifact
35+
run: |
36+
Copy-Item NOTICE.md Target/Release/
37+
Copy-Item LICENSE Target/Release/
38+
Remove-Item Target/Release/*.xml -ErrorAction SilentlyContinue
39+
Remove-Item Target/Release/Tests -Recurse -ErrorAction SilentlyContinue
40+
Remove-Item Target/Release/ModernTests -Recurse -ErrorAction SilentlyContinue
41+
shell: powershell
42+
- name: Upload Artifact
43+
uses: actions/upload-artifact@v7
44+
with:
45+
name: SQLCallStackResolver
46+
path: Target/Release/

0 commit comments

Comments
 (0)