File tree Expand file tree Collapse file tree 7 files changed +42
-5
lines changed
Expand file tree Collapse file tree 7 files changed +42
-5
lines changed Original file line number Diff line number Diff 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."
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 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 ` .
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " openapi-to-mcp"
7- version = " 0.3.1 "
7+ version = " 0.3.2 "
88description = " Turn any OpenAPI/Swagger spec into a runnable MCP server in one command."
99readme = " README.md"
1010requires-python = " >=3.10"
Original file line number Diff line number Diff line change 22
33__all__ = ["__version__" ]
44
5- __version__ = "0.3.1 "
5+ __version__ = "0.3.2 "
Original file line number Diff line number Diff 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
3131class OpenAPIMCPRuntime :
You can’t perform that action at this time.
0 commit comments