File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish to PyPI
2+
3+ on :
4+ release :
5+ types : [published]
6+ workflow_dispatch :
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+
14+ - name : Set up Python
15+ uses : actions/setup-python@v5
16+ with :
17+ python-version : " 3.12"
18+
19+ - name : Install uv
20+ uses : astral-sh/setup-uv@v4
21+
22+ - name : Set up Node.js
23+ uses : actions/setup-node@v4
24+ with :
25+ node-version : " 20"
26+
27+ - name : Build JS bundle
28+ run : |
29+ cd js
30+ npm install
31+ npm run build
32+
33+ - name : Build package
34+ run : uv build
35+
36+ - name : Upload dist
37+ uses : actions/upload-artifact@v4
38+ with :
39+ name : dist
40+ path : dist/
41+
42+ publish :
43+ needs : build
44+ runs-on : ubuntu-latest
45+ environment : pypi
46+ permissions :
47+ id-token : write
48+ steps :
49+ - name : Download dist
50+ uses : actions/download-artifact@v4
51+ with :
52+ name : dist
53+ path : dist/
54+
55+ - name : Publish to PyPI
56+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments