File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Python 🐍 distributions 📦 to PyPI
2
+ on :
3
+ push :
4
+ tags :
5
+ - ' *'
6
+ jobs :
7
+ pypi-publish :
8
+ name : Upload release to PyPI
9
+ runs-on : ubuntu-latest
10
+ environment :
11
+ name : pypi
12
+ url : https://pypi.org/p/<your-pypi-project-name>
13
+ permissions :
14
+ id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
15
+ steps :
16
+ - uses : actions/checkout@master
17
+ - name : Set up Python 3.10
18
+ uses : actions/setup-python@v3
19
+ with :
20
+ python-version : ' 3.10'
21
+ - name : Install pypa/setuptools
22
+ run : >-
23
+ python -m
24
+ pip install wheel
25
+ - name : Build a binary wheel
26
+ run : >-
27
+ python setup.py sdist bdist_wheel
28
+ - name : Publish package distributions to PyPI
29
+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments