Skip to content

Commit b45ff4a

Browse files
author
Guotong
committed
release: v0.3.2
1 parent 009bbe0 commit b45ff4a

File tree

7 files changed

+42
-5
lines changed

7 files changed

+42
-5
lines changed

.github/workflows/publish.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,25 @@ jobs:
2828
python -m build
2929
twine check dist/*
3030
31+
- name: Detect PyPI token
32+
id: pypi_token
33+
env:
34+
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
35+
run: |
36+
if [ -n "${PYPI_API_TOKEN}" ]; then
37+
echo "has_token=true" >> "$GITHUB_OUTPUT"
38+
else
39+
echo "has_token=false" >> "$GITHUB_OUTPUT"
40+
fi
41+
3142
- name: Publish to PyPI
32-
if: ${{ secrets.PYPI_API_TOKEN != '' }}
43+
if: ${{ steps.pypi_token.outputs.has_token == 'true' }}
3344
uses: pypa/gh-action-pypi-publish@release/v1
3445
with:
3546
password: ${{ secrets.PYPI_API_TOKEN }}
3647

3748
- name: Skip PyPI publish (token not configured)
38-
if: ${{ secrets.PYPI_API_TOKEN == '' }}
49+
if: ${{ steps.pypi_token.outputs.has_token != 'true' }}
3950
run: |
4051
echo "PYPI_API_TOKEN is not set. Skipping package upload."
4152
echo "To enable publish, add PYPI_API_TOKEN in repo Settings -> Secrets and variables -> Actions."

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.3.2 - 2026-03-18
4+
5+
- CI: fixed publish workflow expression error by detecting PyPI token via step output.
6+
- CI: publish job now cleanly skips upload when `PYPI_API_TOKEN` is absent.
7+
38
## 0.3.1 - 2026-03-18
49

510
- CI: publish workflow now skips PyPI upload when `PYPI_API_TOKEN` is not configured.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ CI and release workflows are provided in `.github/workflows/`.
149149
- [docs/post-template.md](docs/post-template.md)
150150
- [docs/release/v0.3.0-release-notes.md](docs/release/v0.3.0-release-notes.md)
151151
- [docs/release/v0.3.1-release-notes.md](docs/release/v0.3.1-release-notes.md)
152+
- [docs/release/v0.3.2-release-notes.md](docs/release/v0.3.2-release-notes.md)
152153
- [docs/release/launch-copies.md](docs/release/launch-copies.md)
153154
- [docs/release/repo-branding.md](docs/release/repo-branding.md)
154155
- [docs/release/publish-runbook.md](docs/release/publish-runbook.md)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# openapi-to-mcp v0.3.2
2+
3+
Release date: 2026-03-18
4+
5+
## TL;DR
6+
7+
This release fixes the GitHub Actions publish workflow.
8+
9+
- Resolved workflow expression error that caused early publish check failure.
10+
- Publish now detects `PYPI_API_TOKEN` safely via step output.
11+
- If token is missing, upload is skipped with a clear message.
12+
13+
## Why this release
14+
15+
Some `v0.3.1` publish runs failed before job execution due expression parsing with secrets context.
16+
This patch corrects the workflow logic.
17+
18+
## Notes
19+
20+
Core package features are unchanged from `v0.3.0`.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "openapi-to-mcp"
7-
version = "0.3.1"
7+
version = "0.3.2"
88
description = "Turn any OpenAPI/Swagger spec into a runnable MCP server in one command."
99
readme = "README.md"
1010
requires-python = ">=3.10"

src/openapi_to_mcp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
__all__ = ["__version__"]
44

5-
__version__ = "0.3.1"
5+
__version__ = "0.3.2"

src/openapi_to_mcp/runtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class RuntimeConfig:
2525
server_version: str
2626
base_url: str
2727
timeout_seconds: float = 30.0
28-
user_agent: str = "openapi-to-mcp/0.3.1"
28+
user_agent: str = "openapi-to-mcp/0.3.2"
2929

3030

3131
class OpenAPIMCPRuntime:

0 commit comments

Comments
 (0)