Skip to content

Force release trigger #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 9, 2025
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
15 changes: 13 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ name: Release

on:
push:
# The CI job is triggered after merged to branch, so the version between last commits are compared
branches: [main]
workflow_dispatch:
inputs:
force_release:
type: boolean
description: 'Force release regardless of version changes'
default: false

env:
PYTHONVERSION: "3.12"
Expand Down Expand Up @@ -38,6 +44,7 @@ jobs:
run: |
source .venv/bin/activate

FORCE_RELEASE="${{ github.event.inputs.force_release }}"
CUR_VERSION=$(python -c "import toml; print(toml.load('pyproject.toml')['project']['version'])")

git switch --detach HEAD^
Expand All @@ -46,8 +53,12 @@ jobs:

echo "Current version in pyproject.toml: $CUR_VERSION"
echo "Version on main branch: $MAIN_VERSION"
echo "FORCE_RELEASE: $FORCE_RELEASE"

if [ "$CUR_VERSION" == "$MAIN_VERSION" ]; then
if [ "$FORCE_RELEASE" == "true" ]; then
echo "Force release is enabled. Proceeding with the release."
echo "SKIP_RELEASE=false" >> $GITHUB_ENV
elif [ "$CUR_VERSION" == "$MAIN_VERSION" ]; then
echo "The version hasn't changed. Skipping release."
echo "SKIP_RELEASE=true" >> $GITHUB_ENV
else
Expand All @@ -59,7 +70,7 @@ jobs:
if: env.SKIP_RELEASE != 'true'
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PRIVATE_PYPI_PUBLISHER_TOKEN }}
TWINE_PASSWORD: ${{ secrets.PYPI_PUBLISHER_TOKEN }}
run: |
uv run python -m build --sdist
uv run twine upload -r pypi dist/*
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
## 0.1.4-dev
## 0.1.4

### Enhancements

### Fixes
- Adds information in weaviate destination docstring that it requires a schema to be created before using the tool
- Fixed countinous develiery credentials

## 0.1.3

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "uns_mcp"
version = "0.1.3" # Set only non-dev versions to release
version = "0.1.4" # Set only non-dev versions to release
description = "MCP server implementation providing structured tools for interacting with the Unstructured API, managing sources, destinations, workflows, and jobs"
requires-python = ">=3.12"
readme = "README.md"
Expand Down