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