File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed
Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Python Package
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ build :
9+ name : Build distribution 📦
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - uses : actions/checkout@v4
14+ - name : Set up Python
15+ uses : actions/setup-python@v4
16+ with :
17+ python-version : " 3.x"
18+
19+ - name : Install build
20+ run : >-
21+ python3 -m
22+ pip install
23+ build
24+ --user
25+ - name : Build a binary wheel and a source tarball
26+ run : python3 -m build
27+ - name : Store the distribution packages
28+ uses : actions/upload-artifact@v3
29+ with :
30+ name : python-package-distributions
31+ path : dist/
32+
33+ publish :
34+ name : >-
35+ Publish Python package to PyPI 📫
36+ needs :
37+ - build
38+ runs-on : ubuntu-latest
39+ environment :
40+ name : pypi
41+ url : https://pypi.org/project/wc_client/
42+ permissions :
43+ id-token : write
44+
45+ steps :
46+ - name : Download all the dists
47+ uses : actions/download-artifact@v3
48+ with :
49+ name : python-package-distributions
50+ path : dist/
51+ - name : Publish to PyPI
52+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments