Skip to content

Commit bd906ec

Browse files
fix: autorelease tag format
1 parent 405a4a4 commit bd906ec

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ Re-running with `only-tag` or `only-tag-deploy` is helpful when you must recreat
246246
- **Invalid tag format (`release_type: pypi`)**
247247
```
248248
Invalid tag format: v2.10
249-
Expected format: v{major}.{minor}.{patch}[rc{num}]
249+
Expected format: v{major}.{minor}.{patch}[rc{num}|.dev{num}]
250250
```
251-
Use `v2.10.0`, `v2.10.1rc1`, etc.
251+
Use `v2.10.0`, `v2.10.1rc1`, `v2.11.0.dev0`, etc.
252252

253253
- **Tag already exists**
254254
The tagging workflow deletes and recreates the tag automatically. No manual cleanup is needed.

.github/workflows/tidy3d-python-client-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ jobs:
7070
fi
7171
7272
# Validate tag format
73-
TAG_REGEX='^v[0-9]+\.[0-9]+\.[0-9]+(rc[0-9]+)?$'
73+
TAG_REGEX='^v[0-9]+\.[0-9]+\.[0-9]+(rc[0-9]+|\.dev[0-9]+)?$'
7474
if [[ ! "$RELEASE_TAG" =~ $TAG_REGEX ]]; then
75-
echo " Warning: Tag format doesn't match standard pattern v{major}.{minor}.{patch}[rc{num}]"
75+
echo " Warning: Tag format doesn't match standard pattern v{major}.{minor}.{patch}[rc{num}|.dev{num}]"
7676
echo " Tag: $RELEASE_TAG"
7777
echo " Continuing anyway..."
7878
fi

.github/workflows/tidy3d-python-client-release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,13 @@ jobs:
159159
if [[ "$RELEASE_TYPE" == "pypi" ]]; then
160160
echo "PyPI release detected - applying strict tag validation"
161161
162-
# Tag must match semantic versioning: v{major}.{minor}.{patch}[rc{num}]
163-
TAG_REGEX='^v[0-9]+\.[0-9]+\.[0-9]+(rc[0-9]+)?$'
164-
162+
# Tag must match semantic versioning: v{major}.{minor}.{patch}[rc{num}|.dev{num}]
163+
TAG_REGEX='^v[0-9]+\.[0-9]+\.[0-9]+(rc[0-9]+|\.dev[0-9]+)?$'
164+
165165
if [[ ! "$RELEASE_TAG" =~ $TAG_REGEX ]]; then
166166
echo "Invalid tag format: $RELEASE_TAG"
167-
echo " Expected format: v{major}.{minor}.{patch}[rc{num}]"
168-
echo " Examples: v2.10.0, v2.10.0rc1, v2.10.1rc2"
167+
echo " Expected format: v{major}.{minor}.{patch}[rc{num}|.dev{num}]"
168+
echo " Examples: v2.10.0, v2.10.0rc1, v2.10.1rc2, v2.11.0.dev0"
169169
exit 1
170170
fi
171171

0 commit comments

Comments
 (0)