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
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,9 @@ jobs:

- name: Extract version number from tag
id: extract_version
working-directory: ./ahnlich
run: |
# Extract only the numerical version part from the tag
VERSION=$(make workspace-crate-version CRATE_NAME=${{ needs.prebuild_preparation.outputs.bin_suffix }} | tail -n 1)
# Extract version from release tag (format: bin/<suffix>/<version>)
VERSION=$(echo "${{ github.event.release.tag_name }}" | cut -d'/' -f3)
echo $VERSION
echo "BIN_VERSION=$VERSION" >> $GITHUB_ENV

Expand Down
6 changes: 0 additions & 6 deletions ahnlich/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ PYPOETRY_TOML := $(PYTHON_PROJECT_DIR)/pyproject.toml
# Default version bump rule
BUMP_RULE := patch

# Default crate name
CRATE_NAME := db

help: ## Show this help message
@awk 'BEGIN {FS = ":.*?## "}; /^[a-zA-Z0-9_-]+:.*?## / {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | grep -v '^help:.*?## '
Expand Down Expand Up @@ -136,10 +134,6 @@ bump-ahnlich-ai: ## Bump ahnlich ai version. Rules for bump-ahnlich-ai: patch, m
@cd $(RUST_PROJECT_DIR) && cargo set-version --bump $(BUMP_RULE) --package $(AHNLICH_AI_NAME)
@echo "Ahnlich AI version bumped to $(BUMP_RULE)"

workspace-crate-version: ## View current version of crate in workspace. Rules workspace-crate-version: <CRATE_NAME>.
@echo "Getting version of crate: $(CRATE_NAME)"
@cd $(RUST_PROJECT_DIR) && cargo metadata --format-version 1 --no-deps | jq -r '.packages[] | select(.name == "$(CRATE_NAME)") | "\(.version)"'


demo-tracing:
@echo "Starting Docker services..."
Expand Down
Loading