File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments