Skip to content

Commit 1b77511

Browse files
authored
Chore(release): Release automation to push builds to Github release assets. (#2)
1 parent f8f5193 commit 1b77511

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed
Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: .NET
1+
name: CI BUILD
22

33
on:
44
push:
@@ -24,9 +24,20 @@ jobs:
2424
run: nuget restore WorkflowModerniser.sln
2525

2626
- name: Build solution
27-
run: msbuild WorkflowModerniser.sln -t:publish -property:Configuration=Release
27+
run: msbuild WorkflowModerniser\WorkflowModerniser.csproj -t:build -p:OutputPath=bin\Release -p:Configuration=Release
28+
29+
- uses: vimtor/action-zip@v1.2
30+
with:
31+
files: WorkflowModerniser\bin\Release\
32+
dest: WorkflowModerniser.zip
2833

2934
- uses: actions/upload-artifact@v4
3035
with:
3136
name: WorkflowModerniser
32-
path: WorkflowModerniser\bin\Release\app.publish\
37+
path: WorkflowModerniser.zip
38+
39+
- name: Release
40+
uses: softprops/action-gh-release@v2
41+
if: startsWith(github.ref, 'refs/tags/v')
42+
with:
43+
files: WorkflowModerniser.zip

0 commit comments

Comments
 (0)