@@ -152,8 +152,9 @@ jobs:
152
152
COMMIT_SHA=${{ github.sha }}
153
153
VERSION=${{ steps.meta.outputs.version }}
154
154
155
- create-release :
156
- needs : [build, build-docker]
155
+ create-release-cli :
156
+ if : startsWith(github.ref_name, 'taco/cli/')
157
+ needs : [build]
157
158
runs-on : ubuntu-latest
158
159
steps :
159
160
- uses : actions/checkout@v4
@@ -173,7 +174,6 @@ jobs:
173
174
uses : actions/download-artifact@v4
174
175
175
176
- name : Create release for CLI
176
- if : startsWith(steps.meta.outputs.app_dir, 'taco/cli')
177
177
uses : softprops/action-gh-release@v1
178
178
with :
179
179
tag_name : ${{ github.ref_name }}
@@ -201,8 +201,28 @@ jobs:
201
201
draft : false
202
202
prerelease : false
203
203
204
+ create-release-statesman :
205
+ if : startsWith(github.ref_name, 'taco/statesman/')
206
+ needs : [build, build-docker]
207
+ runs-on : ubuntu-latest
208
+ steps :
209
+ - uses : actions/checkout@v4
210
+ with :
211
+ fetch-depth : 0
212
+
213
+ - name : Derive app dir and version
214
+ id : meta
215
+ run : |
216
+ TAG="${GITHUB_REF_NAME}" # e.g. taco/statesman/v1.2.3
217
+ APP_DIR="${TAG%/v*}" # taco/statesman
218
+ VERSION="${TAG##*/}" # v1.2.3
219
+ echo "app_dir=$APP_DIR" >> $GITHUB_OUTPUT
220
+ echo "version=$VERSION" >> $GITHUB_OUTPUT
221
+
222
+ - name : Download all artifacts
223
+ uses : actions/download-artifact@v4
224
+
204
225
- name : Create release for Statesman
205
- if : startsWith(steps.meta.outputs.app_dir, 'taco/statesman')
206
226
uses : softprops/action-gh-release@v1
207
227
with :
208
228
tag_name : ${{ github.ref_name }}
0 commit comments