Skip to content

Commit 74d6618

Browse files
committed
Add publish action
1 parent 3089f54 commit 74d6618

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/dotnet-desktop.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: .NET Desktop
33
on:
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

0 commit comments

Comments
 (0)