Skip to content

Commit 6ee23b3

Browse files
authored
Force release trigger (#51)
1 parent b078add commit 6ee23b3

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.github/workflows/release.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@ name: Release
22

33
on:
44
push:
5+
# The CI job is triggered after merged to branch, so the version between last commits are compared
56
branches: [main]
67
workflow_dispatch:
8+
inputs:
9+
force_release:
10+
type: boolean
11+
description: 'Force release regardless of version changes'
12+
default: false
713

814
env:
915
PYTHONVERSION: "3.12"
@@ -38,6 +44,7 @@ jobs:
3844
run: |
3945
source .venv/bin/activate
4046
47+
FORCE_RELEASE="${{ github.event.inputs.force_release }}"
4148
CUR_VERSION=$(python -c "import toml; print(toml.load('pyproject.toml')['project']['version'])")
4249
4350
git switch --detach HEAD^
@@ -46,8 +53,12 @@ jobs:
4653
4754
echo "Current version in pyproject.toml: $CUR_VERSION"
4855
echo "Version on main branch: $MAIN_VERSION"
56+
echo "FORCE_RELEASE: $FORCE_RELEASE"
4957
50-
if [ "$CUR_VERSION" == "$MAIN_VERSION" ]; then
58+
if [ "$FORCE_RELEASE" == "true" ]; then
59+
echo "Force release is enabled. Proceeding with the release."
60+
echo "SKIP_RELEASE=false" >> $GITHUB_ENV
61+
elif [ "$CUR_VERSION" == "$MAIN_VERSION" ]; then
5162
echo "The version hasn't changed. Skipping release."
5263
echo "SKIP_RELEASE=true" >> $GITHUB_ENV
5364
else
@@ -59,7 +70,7 @@ jobs:
5970
if: env.SKIP_RELEASE != 'true'
6071
env:
6172
TWINE_USERNAME: "__token__"
62-
TWINE_PASSWORD: ${{ secrets.PRIVATE_PYPI_PUBLISHER_TOKEN }}
73+
TWINE_PASSWORD: ${{ secrets.PYPI_PUBLISHER_TOKEN }}
6374
run: |
6475
uv run python -m build --sdist
6576
uv run twine upload -r pypi dist/*

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
## 0.1.4-dev
1+
## 0.1.4
22

33
### Enhancements
44

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

89
## 0.1.3
910

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uns_mcp"
3-
version = "0.1.3" # Set only non-dev versions to release
3+
version = "0.1.4" # Set only non-dev versions to release
44
description = "MCP server implementation providing structured tools for interacting with the Unstructured API, managing sources, destinations, workflows, and jobs"
55
requires-python = ">=3.12"
66
readme = "README.md"

0 commit comments

Comments
 (0)