@@ -3,8 +3,8 @@ name: taco-release
3
3
on :
4
4
push :
5
5
tags :
6
- - ' taco/cmd/taco /v*'
7
- - ' taco/cmd/ statesman/v*'
6
+ - ' taco/cli /v*'
7
+ - ' taco/statesman/v*'
8
8
9
9
permissions :
10
10
contents : write
61
61
VERSION="${TAG##*/}" # v1.2.3
62
62
echo "app_dir=$APP_DIR" >> $GITHUB_OUTPUT
63
63
echo "version=$VERSION" >> $GITHUB_OUTPUT
64
+ # Map to actual directory paths
65
+ if [ "$APP_DIR" = "taco/cli" ]; then
66
+ echo "build_dir=taco/cmd/taco" >> $GITHUB_OUTPUT
67
+ elif [ "$APP_DIR" = "taco/statesman" ]; then
68
+ echo "build_dir=taco/cmd/statesman" >> $GITHUB_OUTPUT
69
+ fi
64
70
65
71
- name : Build CLI
66
- if : startsWith(steps.meta.outputs.app_dir, 'taco/cmd/taco ')
72
+ if : startsWith(steps.meta.outputs.app_dir, 'taco/cli ')
67
73
working-directory : taco/cmd/taco
68
74
run : |
69
75
CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build \
72
78
sha256sum taco-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }} > taco-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }}.sha256
73
79
74
80
- name : Build Statesman
75
- if : startsWith(steps.meta.outputs.app_dir, 'taco/cmd/ statesman')
81
+ if : startsWith(steps.meta.outputs.app_dir, 'taco/statesman')
76
82
working-directory : taco/cmd/statesman
77
83
run : |
78
84
CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build \
@@ -81,21 +87,21 @@ jobs:
81
87
sha256sum statesman-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }} > statesman-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }}.sha256
82
88
83
89
- name : Upload CLI artifacts
84
- if : startsWith(steps.meta.outputs.app_dir, 'taco/cmd/taco ')
90
+ if : startsWith(steps.meta.outputs.app_dir, 'taco/cli ')
85
91
uses : actions/upload-artifact@v4
86
92
with :
87
93
name : taco-cli-${{ matrix.os }}-${{ matrix.arch }}
88
94
path : taco/cmd/taco/taco-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }}*
89
95
90
96
- name : Upload Statesman artifacts
91
- if : startsWith(steps.meta.outputs.app_dir, 'taco/cmd/ statesman')
97
+ if : startsWith(steps.meta.outputs.app_dir, 'taco/statesman')
92
98
uses : actions/upload-artifact@v4
93
99
with :
94
100
name : taco-statesman-${{ matrix.os }}-${{ matrix.arch }}
95
101
path : taco/cmd/statesman/statesman-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }}*
96
102
97
103
build-docker :
98
- if : startsWith(github.ref_name, 'taco/cmd/ statesman/')
104
+ if : startsWith(github.ref_name, 'taco/statesman/')
99
105
runs-on : ubuntu-latest
100
106
steps :
101
107
- uses : actions/checkout@v4
@@ -167,11 +173,11 @@ jobs:
167
173
uses : actions/download-artifact@v4
168
174
169
175
- name : Create release for CLI
170
- if : startsWith(steps.meta.outputs.app_dir, 'taco/cmd/taco ')
176
+ if : startsWith(steps.meta.outputs.app_dir, 'taco/cli ')
171
177
uses : softprops/action-gh-release@v1
172
178
with :
173
179
tag_name : ${{ github.ref_name }}
174
- name : Taco CLI ${{ steps.meta.outputs.version }}
180
+ name : taco/cli/ ${{ steps.meta.outputs.version }}
175
181
body : |
176
182
## Taco CLI ${{ steps.meta.outputs.version }}
177
183
@@ -196,11 +202,11 @@ jobs:
196
202
prerelease : false
197
203
198
204
- name : Create release for Statesman
199
- if : startsWith(steps.meta.outputs.app_dir, 'taco/cmd/ statesman')
205
+ if : startsWith(steps.meta.outputs.app_dir, 'taco/statesman')
200
206
uses : softprops/action-gh-release@v1
201
207
with :
202
208
tag_name : ${{ github.ref_name }}
203
- name : Taco Statesman ${{ steps.meta.outputs.version }}
209
+ name : taco/statesman/ ${{ steps.meta.outputs.version }}
204
210
body : |
205
211
## Taco Statesman ${{ steps.meta.outputs.version }}
206
212
0 commit comments