File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ name: .NET Desktop
33on :
44 push :
55 branches : [ "main" ]
6+ tags :
7+ - " v*"
68 pull_request :
79 branches : [ "main" ]
810
@@ -42,10 +44,19 @@ jobs:
4244
4345 # Build the application
4446 - name : Build the application
45- run : dotnet build --no-restore
47+ run : dotnet build --no-restore --property WarningLevel=0
4648 env :
4749 Configuration : ${{ matrix.configuration }}
4850
4951 # Execute all unit tests in the solution
5052 - name : Execute unit tests
5153 run : dotnet test
54+
55+ - name : Generate archive
56+ run : Compress-Archive -Path FancyWM/bin/${{ matrix.configuration }}/net6.0-windows10.0.18362.0 -DestinationPath ${{ matrix.configuration }}.zip
57+
58+ - name : Release
59+ uses : softprops/action-gh-release@v1
60+ if : startsWith(github.ref, 'refs/tags/')
61+ with :
62+ files : ${{ matrix.configuration }}.zip
You can’t perform that action at this time.
0 commit comments