14
14
15
15
jobs :
16
16
build :
17
- name : ${{ matrix.config.name }} | Release
17
+ name : ${{ matrix.config.name }} | ${{ matrix.config.build_type }}
18
18
runs-on : ${{ matrix.config.os }}
19
19
strategy :
20
20
fail-fast : false
@@ -26,23 +26,26 @@ jobs:
26
26
project : Wpf,
27
27
runtime : win-x86,
28
28
framework : net5.0-windows,
29
- is_single_file : " false"
29
+ is_single_file : " false" ,
30
+ build_type : Release
30
31
}
31
32
- {
32
33
name : Linux,
33
34
os : ubuntu-latest,
34
35
project : Gtk,
35
36
runtime : linux-x64,
36
37
framework : net5.0,
37
- is_single_file : " true"
38
+ is_single_file : " true" ,
39
+ build_type : Release
38
40
}
39
41
- {
40
42
name : macOS,
41
43
os : macos-latest,
42
44
project : Mac,
43
45
runtime : osx-x64,
44
46
framework : net5.0,
45
- is_single_file : " true"
47
+ is_single_file : " true" ,
48
+ build_type : Release
46
49
}
47
50
48
51
steps :
@@ -59,15 +62,14 @@ jobs:
59
62
60
63
- name : Publish
61
64
run : dotnet publish ${{ env.app_name }}/${{ env.app_name }}.${{ matrix.config.project }}/${{ env.app_name }}.${{ matrix.config.project }}.csproj
62
- --configuration Release
65
+ --configuration ${{ matrix.config.build_type }}
63
66
--output ${{ env.publish_folder }}
64
67
--self-contained true
65
68
-p:PublishSingleFile=${{ matrix.config.is_single_file }}
66
69
--runtime ${{ matrix.config.runtime }}
67
70
--framework ${{ matrix.config.framework }}
68
71
69
72
- name : Create Package
70
- if : (github.event_name == 'release' && github.event.action == 'published' && startsWith(github.ref, 'refs/tags/'))
71
73
shell : bash
72
74
run : |
73
75
filename=${{ env.app_name }}-${{ matrix.config.runtime }}
@@ -78,17 +80,10 @@ jobs:
78
80
fi
79
81
80
82
- uses : actions/upload-artifact@v2
81
- if : (github.event_name == 'release' && github.event.action == 'published' && startsWith(github.ref, 'refs/tags/'))
82
83
with :
83
- name : ${{ matrix.config.runtime }} Release
84
+ name : ${{ matrix.config.runtime }} ${{ matrix.config.build_type }}
84
85
path : ${{ env.app_name }}-${{ matrix.config.runtime }}.zip
85
86
86
- - uses : actions/upload-artifact@v2
87
- if : (github.event_name == 'push' || github.event_name == 'pull_request')
88
- with :
89
- name : ${{ matrix.config.runtime }} Release
90
- path : ${{ env.publish_folder }}
91
-
92
87
- name : List Build Directory
93
88
if : always()
94
89
shell : bash
@@ -105,13 +100,16 @@ jobs:
105
100
matrix :
106
101
config :
107
102
- {
108
- runtime : win-x86
103
+ runtime : win-x86,
104
+ build_type : Release
109
105
}
110
106
- {
111
- runtime : linux-x64
107
+ runtime : linux-x64,
108
+ build_type : Release
112
109
}
113
110
- {
114
- runtime : osx-x64
111
+ runtime : osx-x64,
112
+ build_type : Release
115
113
}
116
114
steps :
117
115
- name : Get release
@@ -123,7 +121,7 @@ jobs:
123
121
- name : Download artifacts
124
122
uses : actions/download-artifact@v2
125
123
with :
126
- name : ${{ matrix.config.runtime }} Release
124
+ name : ${{ matrix.config.runtime }} ${{ matrix.config.build_type }}
127
125
128
126
- name : Upload Release Assets
129
127
uses : actions/upload-release-asset@v1
0 commit comments