File tree 2 files changed +24
-8
lines changed
2 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 13
13
run :
14
14
shell : bash
15
15
16
- name : Build
16
+ strategy :
17
+ matrix :
18
+ release :
19
+ - type : Debug
20
+ suffix : ' -debug'
21
+ - type : Release
22
+ suffix : ' '
23
+
24
+ name : Build (${{ matrix.release.type }})
17
25
18
26
steps :
19
27
- uses : actions/checkout@v2
@@ -27,11 +35,11 @@ jobs:
27
35
run : dotnet restore
28
36
29
37
- name : Build
30
- run : dotnet build -c Release
38
+ run : dotnet build -c ${{ matrix.release.type }} -p:Version=0.0.0-rolling+${{ github.sha }}
31
39
32
40
- name : Zip
33
41
if : " ! startsWith(github.event_name, 'pull_request')"
34
- run : 7z a -tzip -mx9 SharpHound. zip bin/Release /net462
42
+ run : 7z a -tzip -mx9 SharpHound${{ matrix.release.suffix }}. zip $PWD/ bin/${{ matrix.release.type }} /net462/*
35
43
36
44
- name : Update Rolling Release
37
45
if : " ! startsWith(github.event_name, 'pull_request')"
40
48
name : Rolling Release (unstable)
41
49
tag_name : rolling
42
50
prerelease : true
43
- files : SharpHound.zip
51
+ files : SharpHound${{ matrix.release.suffix }} .zip
44
52
body : |
45
53
Rolling release of SharpHound compiled from source (${{ github.sha }})
46
54
This is automatically kept up-to-date with the `${{ github.ref_name }}` ${{ github.ref_type }}.
Original file line number Diff line number Diff line change 12
12
run :
13
13
shell : bash
14
14
15
- name : Build
15
+ strategy :
16
+ matrix :
17
+ release :
18
+ - type : Debug
19
+ suffix : ' -debug'
20
+ - type : Release
21
+ suffix : ' '
22
+
23
+ name : Build (${{ matrix.release.type }})
16
24
17
25
steps :
18
26
- uses : actions/checkout@v2
@@ -28,12 +36,12 @@ jobs:
28
36
- name : Build
29
37
run : |
30
38
VERSION=${{ github.ref_name }}
31
- dotnet build -c Release -p:Version=${VERSION:1}
39
+ dotnet build -c ${{ matrix.release.type }} -p:Version=${VERSION:1}
32
40
33
41
- name : Zip
34
- run : 7z a -tzip -mx9 SharpHound-${{ github.ref_name }}. zip bin/Release /net462
42
+ run : 7z a -tzip -mx9 SharpHound-${{ github.ref_name }}${{ matrix.release.suffix }}. zip $PWD/ bin/${{ matrix.release.type }} /net462/*
35
43
36
44
- name : Upload to Release
37
45
uses : softprops/action-gh-release@v1
38
46
with :
39
- files : SharpHound-${{ github.ref_name }}.zip
47
+ files : SharpHound-${{ github.ref_name }}${{ matrix.release.suffix }} .zip
You can’t perform that action at this time.
0 commit comments