File tree Expand file tree Collapse file tree 3 files changed +40
-84
lines changed Expand file tree Collapse file tree 3 files changed +40
-84
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
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/
You can’t perform that action at this time.
0 commit comments