Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/publish-sdk.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# This workflow is used to publish the Python SDK to the actual PyPI.
# It is triggered by a tag push, and will only publish if the tag is valid.
# The tag must match the format sdk-v*.*.*
# The tag must match the format v*.*.*

name: Publish Python SDK

on:
push:
tags:
- "sdk-v*.*.*" # Trigger on version tags like sdk-v0.1.0 etc.
- "v*.*.*" # Trigger on version tags like v0.1.0 etc.

jobs:
validate:
Expand Down
78 changes: 0 additions & 78 deletions .github/workflows/release-tag.yaml

This file was deleted.

12 changes: 6 additions & 6 deletions scripts/validate-release-tag.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# Validate release requirements
# - Checks if the tag matches naming convention (sdk-v*.*.*)
# - Checks if the tag matches naming convention (v*.*.*)
# - Checks if the tag matches the version in the package
# - Ensures we're releasing from the release branch

Expand All @@ -20,14 +20,14 @@ git fetch --tags --prune --force

TAG=$1

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

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

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

Expand Down
Loading