@@ -152,8 +152,9 @@ jobs:
152152 COMMIT_SHA=${{ github.sha }}
153153 VERSION=${{ steps.meta.outputs.version }}
154154
155- create-release :
156- needs : [build, build-docker]
155+ create-release-cli :
156+ if : startsWith(github.ref_name, 'taco/cli/')
157+ needs : [build]
157158 runs-on : ubuntu-latest
158159 steps :
159160 - uses : actions/checkout@v4
@@ -173,7 +174,6 @@ jobs:
173174 uses : actions/download-artifact@v4
174175
175176 - name : Create release for CLI
176- if : startsWith(steps.meta.outputs.app_dir, 'taco/cli')
177177 uses : softprops/action-gh-release@v1
178178 with :
179179 tag_name : ${{ github.ref_name }}
@@ -201,8 +201,28 @@ jobs:
201201 draft : false
202202 prerelease : false
203203
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+
204225 - name : Create release for Statesman
205- if : startsWith(steps.meta.outputs.app_dir, 'taco/statesman')
206226 uses : softprops/action-gh-release@v1
207227 with :
208228 tag_name : ${{ github.ref_name }}
0 commit comments