Skip to content

Commit d6b3599

Browse files
committed
synd-cli-v to be an internal tag
1 parent 72035ac commit d6b3599

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/publish-synd-cli.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Publish synd-cli Binaries
33
on:
44
workflow_dispatch:
55
inputs:
6-
tag_name:
7-
description: "synd-cli version tag (e.g., synd-cli-v1.0.0)"
6+
version:
7+
description: "Version (e.g., 1.0.0)"
88
required: true
99
type: string
1010

@@ -16,10 +16,10 @@ jobs:
1616
name: Build synd-cli executables
1717
runs-on: ubuntu-latest
1818
steps:
19-
- name: Validate tag format
19+
- name: Validate version format
2020
run: |
21-
if [[ ! "${{ inputs.tag_name }}" =~ ^synd-cli-v[0-9]+\.[0-9]+\.[0-9]+(-.*)?$ ]]; then
22-
echo "Error: tag_name must start with 'synd-cli-v' followed by semver (e.g., synd-cli-v1.0.0)"
21+
if [[ ! "${{ inputs.version }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-.*)?$ ]]; then
22+
echo "Error: version must be valid semver (e.g., 1.0.0, 1.0.0-beta.1)"
2323
exit 1
2424
fi
2525
@@ -94,7 +94,7 @@ jobs:
9494
needs: build
9595
runs-on: ubuntu-latest
9696
env:
97-
TAG_NAME: ${{ inputs.tag_name }}
97+
TAG_NAME: synd-cli-v${{ inputs.version }}
9898
steps:
9999
- name: Download build artifacts
100100
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)