Skip to content

Commit bc912a4

Browse files
authored
Merge pull request #53 from LayerLens/main
Fix version tags
2 parents f81ed7d + d90b23c commit bc912a4

3 files changed

Lines changed: 8 additions & 86 deletions

File tree

.github/workflows/publish-sdk.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# This workflow is used to publish the Python SDK to the actual PyPI.
22
# It is triggered by a tag push, and will only publish if the tag is valid.
3-
# The tag must match the format sdk-v*.*.*
3+
# The tag must match the format v*.*.*
44

55
name: Publish Python SDK
66

77
on:
88
push:
99
tags:
10-
- "sdk-v*.*.*" # Trigger on version tags like sdk-v0.1.0 etc.
10+
- "v*.*.*" # Trigger on version tags like v0.1.0 etc.
1111

1212
jobs:
1313
validate:

.github/workflows/release-tag.yaml

Lines changed: 0 additions & 78 deletions
This file was deleted.

scripts/validate-release-tag.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# Validate release requirements
3-
# - Checks if the tag matches naming convention (sdk-v*.*.*)
3+
# - Checks if the tag matches naming convention (v*.*.*)
44
# - Checks if the tag matches the version in the package
55
# - Ensures we're releasing from the release branch
66

@@ -20,14 +20,14 @@ git fetch --tags --prune --force
2020

2121
TAG=$1
2222

23-
# Check if tag starts with sdk-v
24-
if [[ ! "$TAG" =~ ^sdk-v ]]; then
25-
echo "ERROR: Tag must start with 'sdk-v'"
23+
# Check if tag starts with v
24+
if [[ ! "$TAG" =~ ^v ]]; then
25+
echo "ERROR: Tag must start with 'v'"
2626
exit 1
2727
fi
2828

29-
# Extract version without the 'sdk-v' prefix
30-
VERSION=${TAG#sdk-v}
29+
# Extract version without the 'v' prefix
30+
VERSION=${TAG#v}
3131

3232
PACKAGE_VERSION=$(bash "$ROOT_DIR/scripts/get_version.sh")
3333

0 commit comments

Comments
 (0)