Skip to content

Commit 2943bbb

Browse files
authored
Update dotnet-desktop.yml
1 parent 9768cbd commit 2943bbb

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/dotnet-desktop.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,23 @@ jobs:
3131
- name: Build the solution
3232
run: msbuild SDDLConvertDomain.sln /p:Configuration=Release /p:Platform="Any CPU"
3333

34-
- name: Archive the build
35-
uses: actions/upload-artifact@v3
34+
- name: Create ZIP archive
35+
run: |
36+
mkdir artifacts
37+
$tag = ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name || github.ref_name }}
38+
Compress-Archive -Path SDDLConvertDomainConsole\bin\Release\* -DestinationPath "artifacts\SDDLConvertDomain-win-x64-$tag.zip"
39+
40+
41+
- name: Upload artifact
42+
uses: actions/upload-artifact@v4
3643
with:
37-
name: SDDLConvertDomain-win-x64
38-
path: |
39-
SDDLConvertDomainConsole\bin\Release\**
44+
name: SDDLConvertDomain-win-x64-$tag.zip
45+
path: artifacts\SDDLConvertDomain-win-x64-$tag.zip
4046

4147
- name: Create GitHub Release
4248
uses: ncipollo/release-action@v1
4349
with:
44-
artifacts: SDDLConvertDomainConsole/bin/Release/**
50+
artifacts: artifacts\SDDLConvertDomain-win-x64-$tag.zip
4551
token: ${{ secrets.GITHUB_TOKEN }}
4652
tag: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name || github.ref_name }}
4753
name: Release ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name || github.ref_name }}

0 commit comments

Comments
 (0)