Skip to content

Commit aa191d9

Browse files
committed
adjust naming to match brief
1 parent 3e56285 commit aa191d9

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

.github/workflows/taco-release.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: taco-release
33
on:
44
push:
55
tags:
6-
- 'taco/cmd/taco/v*'
7-
- 'taco/cmd/statesman/v*'
6+
- 'taco/cli/v*'
7+
- 'taco/statesman/v*'
88

99
permissions:
1010
contents: write
@@ -61,9 +61,15 @@ jobs:
6161
VERSION="${TAG##*/}" # v1.2.3
6262
echo "app_dir=$APP_DIR" >> $GITHUB_OUTPUT
6363
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
6470
6571
- name: Build CLI
66-
if: startsWith(steps.meta.outputs.app_dir, 'taco/cmd/taco')
72+
if: startsWith(steps.meta.outputs.app_dir, 'taco/cli')
6773
working-directory: taco/cmd/taco
6874
run: |
6975
CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build \
@@ -72,7 +78,7 @@ jobs:
7278
sha256sum taco-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }} > taco-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }}.sha256
7379
7480
- name: Build Statesman
75-
if: startsWith(steps.meta.outputs.app_dir, 'taco/cmd/statesman')
81+
if: startsWith(steps.meta.outputs.app_dir, 'taco/statesman')
7682
working-directory: taco/cmd/statesman
7783
run: |
7884
CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build \
@@ -81,21 +87,21 @@ jobs:
8187
sha256sum statesman-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }} > statesman-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }}.sha256
8288
8389
- 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')
8591
uses: actions/upload-artifact@v4
8692
with:
8793
name: taco-cli-${{ matrix.os }}-${{ matrix.arch }}
8894
path: taco/cmd/taco/taco-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }}*
8995

9096
- 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')
9298
uses: actions/upload-artifact@v4
9399
with:
94100
name: taco-statesman-${{ matrix.os }}-${{ matrix.arch }}
95101
path: taco/cmd/statesman/statesman-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }}*
96102

97103
build-docker:
98-
if: startsWith(github.ref_name, 'taco/cmd/statesman/')
104+
if: startsWith(github.ref_name, 'taco/statesman/')
99105
runs-on: ubuntu-latest
100106
steps:
101107
- uses: actions/checkout@v4
@@ -167,11 +173,11 @@ jobs:
167173
uses: actions/download-artifact@v4
168174

169175
- 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')
171177
uses: softprops/action-gh-release@v1
172178
with:
173179
tag_name: ${{ github.ref_name }}
174-
name: Taco CLI ${{ steps.meta.outputs.version }}
180+
name: taco/cli/${{ steps.meta.outputs.version }}
175181
body: |
176182
## Taco CLI ${{ steps.meta.outputs.version }}
177183
@@ -196,11 +202,11 @@ jobs:
196202
prerelease: false
197203

198204
- 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')
200206
uses: softprops/action-gh-release@v1
201207
with:
202208
tag_name: ${{ github.ref_name }}
203-
name: Taco Statesman ${{ steps.meta.outputs.version }}
209+
name: taco/statesman/${{ steps.meta.outputs.version }}
204210
body: |
205211
## Taco Statesman ${{ steps.meta.outputs.version }}
206212

release-please-manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"taco/cmd/taco": "0.0.0",
3-
"taco/cmd/statesman": "0.0.0"
2+
"taco/cli": "0.0.0",
3+
"taco/statesman": "0.0.0"
44
}

0 commit comments

Comments
 (0)