Skip to content

Commit d3e82d9

Browse files
authored
combine pypi releases (#32)
1 parent 11c8835 commit d3e82d9

File tree

3 files changed

+40
-84
lines changed

3 files changed

+40
-84
lines changed

.github/workflows/publish_pypi_thirdweb_ai.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/publish_pypi_thirdweb_mcp.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build and Publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build-and-publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
12+
with:
13+
fetch-depth: 0
14+
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@22695119d769bdb6f7032ad67b9bca0ef8c4a174 # v5
17+
18+
- name: Install Python
19+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
20+
with:
21+
enable-cache: true
22+
cache-dependency-glob: "uv.lock" # Update cache if uv.lock changes
23+
24+
- name: Build thirdweb-mcp
25+
run: |
26+
cd python/thirdweb-mcp
27+
uv build
28+
29+
- name: Build thirdweb-ai
30+
run: |
31+
cd python/thirdweb-ai
32+
uv build
33+
34+
- name: Publish to PyPI
35+
if: github.event_name == 'release' && github.event.action == 'published'
36+
uses: pypa/gh-action-pypi-publish@release/v1
37+
with:
38+
user: __token__
39+
password: ${{ secrets.PYPI_API_TOKEN }}
40+
packages-dir: thirdweb-mcp/dist/ thirdweb-ai/dist/

0 commit comments

Comments
 (0)