diff --git a/.github/workflows/build-contracts-and-push-to-r2.yaml b/.github/workflows/build-contracts-and-push-to-r2.yaml index 51d87aa49..4ae1f3983 100644 --- a/.github/workflows/build-contracts-and-push-to-r2.yaml +++ b/.github/workflows/build-contracts-and-push-to-r2.yaml @@ -9,7 +9,7 @@ on: workflow_dispatch: inputs: branch: - description: Github branch to checkout for compilation + description: Github branch or tag to checkout for compilation required: true default: main type: string @@ -40,16 +40,16 @@ jobs: run: | tag="${{ steps.get-tag.outputs.tag }}" is_release="false" - + if [[ $tag =~ ^([a-zA-Z-]+)-v([0-9]+\.[0-9]+\.[0-9]+)$ ]]; then is_release="true" crate_name="${BASH_REMATCH[1]}" crate_version="${BASH_REMATCH[2]}" - + echo "Is release: $is_release" echo "Crate Name: $crate_name" echo "Crate Version: $crate_version" - + echo "is-release=$is_release" >> $GITHUB_OUTPUT echo "crate-name=$crate_name" >> $GITHUB_OUTPUT echo "crate-version=$crate_version" >> $GITHUB_OUTPUT