Skip to content

Commit 24e8006

Browse files
authored
Merge pull request #82 from Codeuctivity/copilot/sub-pr-75
Zip CLI artifacts directory for release attachments
2 parents e38a844 + 33b6b5f commit 24e8006

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,14 @@ jobs:
8282
run: |
8383
dotnet nuget push ./SkiaSharpCompare/bin/Release/*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TOKEN}} --source https://api.nuget.org/v3/index.json
8484
- name: Github release
85+
shell: bash
8586
env:
8687
GITHUB_TOKEN: ${{ github.TOKEN }}
8788
if: env.GITHUB_TOKEN != ''
8889
run: |
8990
# Attach all downloaded CLI artifacts regardless of OS
90-
# After (fixed)
91-
gh release create ${{env.CURRENT_VERSION}} ./SkiaSharpCompare/bin/Release/*.*nupkg ./artifacts_download/**/* --generate-notes
91+
zip -r cli-artifacts.zip ./artifacts_download
92+
gh release create ${{env.CURRENT_VERSION}} ./SkiaSharpCompare/bin/Release/*.*nupkg cli-artifacts.zip --generate-notes
9293
9394
deployTest:
9495
if: ${{ !startsWith(github.ref, 'refs/heads/release') }}
@@ -124,4 +125,5 @@ jobs:
124125
GITHUB_TOKEN: ${{ github.TOKEN }}
125126
if: env.GITHUB_TOKEN != ''
126127
run: |
127-
gh release create ${{env.CURRENT_VERSION}} ./SkiaSharpCompare/bin/Release/*.*nupkg ./artifacts_download/**/* --prerelease --generate-notes
128+
zip -r cli-artifacts.zip ./artifacts_download
129+
gh release create ${{env.CURRENT_VERSION}} ./SkiaSharpCompare/bin/Release/*.*nupkg cli-artifacts.zip --prerelease --generate-notes

0 commit comments

Comments
 (0)