11
11
description : " Whether to skip automatic version bump (yes/no)"
12
12
required : false
13
13
default : " no"
14
+ skips_version_commit :
15
+ description : " Whether to skip the version commit (yes/no)"
16
+ required : false
17
+ default : " no"
18
+ skips_publish :
19
+ description : " Whether to skip publishing the release assets (yes/no)"
20
+ required : false
21
+ default : " no"
14
22
15
23
env :
16
24
CARGO_TERM_COLOR : always
@@ -19,10 +27,12 @@ jobs:
19
27
publish-release_assets :
20
28
name : Publish the release assets
21
29
runs-on : ubuntu-latest
22
- needs : [build-distrod_wsl_launcher]
30
+ needs : [build-distrod_wsl_launcher, bump-version ]
23
31
24
32
steps :
25
33
- uses : actions/checkout@v2
34
+ with :
35
+ ref : ${{ needs.bump-version.outputs.tag }}
26
36
27
37
- name : Get the arch name
28
38
run : |
@@ -49,27 +59,31 @@ jobs:
49
59
50
60
- name : Upload Binaries to Release
51
61
uses : svenstaro/upload-release-action@v2
62
+ if : github.event.inputs.skips_publish != 'yes'
52
63
with :
53
64
repo_token : ${{ secrets.GITHUB_TOKEN }}
54
65
file : assets/*
55
66
file_glob : true
56
- tag : ${{ steps.changelog .outputs.tag }}
67
+ tag : ${{ needs.bump-version .outputs.tag }}
57
68
overwrite : true
58
69
prerelease : ${{ github.event.inputs.is_prerelease == 'yes' }}
59
- release_name : ${{ steps.changelog .outputs.tag }}
60
- body : ${{ steps.changelog .outputs.clean_changelog }}
70
+ release_name : ${{ needs.bump-version .outputs.tag }}
71
+ body : ${{ needs.bump-version .outputs.clean_changelog }}
61
72
62
73
build-distrod_wsl_launcher :
63
74
name : Build Distrod WSL launcher
64
75
runs-on : windows-latest
65
- needs : [build-distrod-command]
76
+ needs : [build-distrod-command, bump-version ]
66
77
67
78
defaults :
68
79
run :
69
80
shell : bash
70
81
71
82
steps :
72
83
- uses : actions/checkout@v2
84
+ with :
85
+ ref : ${{ needs.bump-version.outputs.tag }}
86
+
73
87
- uses : actions/cache@v2
74
88
with :
75
89
path : |
@@ -107,6 +121,9 @@ jobs:
107
121
108
122
steps :
109
123
- uses : actions/checkout@v2
124
+ with :
125
+ ref : ${{ needs.bump-version.outputs.tag }}
126
+
110
127
- uses : actions/cache@v2
111
128
with :
112
129
path : |
@@ -157,8 +174,12 @@ jobs:
157
174
bump-version :
158
175
name : Bump the version
159
176
runs-on : ubuntu-latest
177
+ outputs :
178
+ tag : ${{ steps.changelog.outputs.tag }}
179
+ clean_changelog : ${{ steps.changelog.outputs.clean_changelog }}
160
180
161
181
steps :
182
+ - uses : actions/checkout@v2
162
183
- name : Conventional Changelog Action
163
184
id : changelog
164
185
uses : TriPSs/conventional-changelog-action@v3
@@ -171,6 +192,8 @@ jobs:
171
192
git-user-email : " 41898282+github-actions[bot]@users.noreply.github.com"
172
193
release-count : " 0"
173
194
skip-version-file : ${{ github.event.inputs.skips_version_bump == 'yes' }}
195
+ skip-commit : ${{ github.event.inputs.skips_version_commit == 'yes' }}
196
+ skip-ci : false
174
197
175
198
build-portproxy-exe :
176
199
name : Build portproxy.exe
0 commit comments