Skip to content

Commit c87bc7e

Browse files
committed
add workflow to publish to pypi
1 parent bd32d05 commit c87bc7e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/pypi.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: publish package on pypi
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types:
7+
- published
8+
9+
jobs:
10+
publish-to-testpypi:
11+
name: "publish to pypi"
12+
runs-on: "ubuntu-latest"
13+
14+
environment:
15+
name: pypi
16+
url: https://pypi.org/p/e3tools
17+
18+
permissions:
19+
id-token: write
20+
21+
steps:
22+
- uses: "actions/checkout@v4"
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Install uv
27+
uses: astral-sh/setup-uv@v5
28+
29+
- name: build
30+
run: uv build
31+
32+
- name: publish
33+
run: uv publish

0 commit comments

Comments
 (0)