File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : publish-to-pypi
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*"
7+
8+ jobs :
9+ build :
10+ name : Build distribution
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout repository
15+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
16+ with :
17+ fetch-depth : 0
18+
19+ - name : Set up Python
20+ uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c
21+ with :
22+ python-version : " 3.x"
23+
24+ - name : Install uv
25+ uses : astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
26+
27+ - name : Build distributions with uv
28+ run : uv build --wheel
29+
30+ - name : Upload distributions as artifact
31+ uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
32+ with :
33+ name : python-package-distributions-${{ github.run_id }}
34+ path : dist/
35+
36+ publish-to-pypi :
37+ name : Publish Python distribution to PyPI
38+ needs : [build]
39+ runs-on : ubuntu-latest
40+
41+ environment :
42+ name : pypi
43+ url : https://pypi.org/project/python-em511/
44+
45+ permissions :
46+ id-token : write
47+
48+ steps :
49+ - name : Download all build artifacts
50+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
51+ with :
52+ name : python-package-distributions-${{ github.run_id }}
53+ path : dist/
54+
55+ - name : Publish to PyPI
56+ uses : pypa/gh-action-pypi-publish@release/v1
57+ with :
58+ verbose : true
59+
You can’t perform that action at this time.
0 commit comments