Skip to content

Commit 6a25463

Browse files
publish workflow uploads to PyPI only if bundle builds correctly.
1 parent 7face87 commit 6a25463

4 files changed

Lines changed: 21 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,13 @@ jobs:
5656
- name: Build package
5757
run: uv build
5858

59-
- name: Publish to PyPI
60-
uses: pypa/gh-action-pypi-publish@release/v1
61-
with:
62-
user: __token__
63-
password: ${{ secrets.PYPI_API_TOKEN }}
64-
6559
- name: Upload Python artifacts
6660
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
6761
with:
6862
name: python-dist
6963
path: dist/
7064

71-
build_extension:
65+
build_bundle:
7266
runs-on: ubuntu-latest
7367
needs: test
7468
steps:
@@ -105,9 +99,25 @@ jobs:
10599
name: mcpb-dist
106100
path: '*.mcpb'
107101

102+
publish_pypi:
103+
runs-on: ubuntu-latest
104+
needs: [build_package, build_bundle]
105+
steps:
106+
- name: Download Python artifacts
107+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
108+
with:
109+
name: python-dist
110+
path: dist/
111+
112+
- name: Publish to PyPI
113+
uses: pypa/gh-action-pypi-publish@release/v1
114+
with:
115+
user: __token__
116+
password: ${{ secrets.PYPI_API_TOKEN }}
117+
108118
create_release:
109119
runs-on: ubuntu-latest
110-
needs: [build_package, build_extension]
120+
needs: publish_pypi
111121
steps:
112122
- name: Download Python artifacts
113123
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"display_name": "PythonAnywhere MCP Server",
55
"description": "Manage files, websites, and scheduled tasks on PythonAnywhere via the Model Context Protocol.",
66
"icon": "icon.png",
7-
"version": "0.0.9",
7+
"version": "0.0.10",
88
"author": {
99
"name": "PythonAnywhere Developers",
1010
"email": "developers@pythonanywhere.com"

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 = "pythonanywhere-mcp-server"
7-
version = "0.0.9"
7+
version = "0.0.10"
88
description = "PythonAnywhere Model Context Protocol Server"
99
authors = [
1010
{name = "PythonAnywhere Developers", email = "developers@pythonanywhere.com"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.9"
1+
__version__ = "0.0.10"

0 commit comments

Comments
 (0)