File tree 2 files changed +19
-2
lines changed
2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,14 @@ name: CI
3
3
on :
4
4
push :
5
5
branches : [ "main" ]
6
+ tags : [ "v*" ]
6
7
pull_request :
7
8
branches : [ "main" ]
8
9
10
+ env :
11
+ dotnet_version : 6.0.x
12
+ build_config : Release
13
+
9
14
jobs :
10
15
ci :
11
16
runs-on : windows-latest
@@ -14,12 +19,23 @@ jobs:
14
19
- name : Setup .NET
15
20
uses : actions/setup-dotnet@v3
16
21
with :
17
- dotnet-version : 6.0.x
22
+ dotnet-version : ${{ env.dotnet_version }}
18
23
- name : Restore tools
19
24
run : dotnet tool restore
20
25
- name : Code format
21
26
run : dotnet csharpier --check .
22
27
- name : Restore dependencies
23
28
run : dotnet restore
24
29
- name : Build
25
- run : dotnet build --no-restore -c Debug
30
+ run : dotnet build --no-restore -c Release
31
+ - name : Publish
32
+ if : github.repository == 'protyposis/AudioAlign' && startsWith(github.ref, 'refs/tags/v')
33
+ run : |
34
+ dotnet publish ./AudioAlign/ -c ${{ env.build_config }} -o dist --no-restore --no-build
35
+ 7z a AudioAlign-${{ env.build_config }}-${{ github.ref_name }}.zip ./dist/*
36
+ - name : GitHub Release
37
+ if : github.repository == 'protyposis/AudioAlign' && startsWith(github.ref, 'refs/tags/v')
38
+ uses : softprops/action-gh-release@v1
39
+ with :
40
+ draft : true # create draft release because changelog needs to be added manually (and could be too easily forgotten otherwise)
41
+ files : ./AudioAlign*.zip
Original file line number Diff line number Diff line change 9
9
** /packages /*
10
10
11
11
licenseinfo.txt
12
+ /dist
You can’t perform that action at this time.
0 commit comments