File tree Expand file tree Collapse file tree 3 files changed +47
-31
lines changed Expand file tree Collapse file tree 3 files changed +47
-31
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
2+
3+ on : push
4+
5+ jobs :
6+ build :
7+ name : Build distribution 📦
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v4
11+ - name : Set up Python
12+ uses : actions/setup-python@v4
13+ with :
14+ python-version : " 3.x"
15+ - name : Install pypa/build
16+ run : >-
17+ python3 -m
18+ pip install
19+ build
20+ --user
21+ - name : Build a binary wheel and a source tarball
22+ run : python3 -m build
23+ - name : Store the distribution packages
24+ uses : actions/upload-artifact@v3
25+ with :
26+ name : python-package-distributions
27+ path : dist/
28+ publish-to-pypi :
29+ name : >-
30+ Publish Python 🐍 distribution 📦 to PyPI
31+ if : startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
32+ needs :
33+ - build
34+ runs-on : ubuntu-latest
35+ environment :
36+ name : pypi
37+ url : https://pypi.org/p/async-irc
38+ permissions :
39+ id-token : write # IMPORTANT: mandatory for trusted publishing
40+ steps :
41+ - name : Download all the dists
42+ uses : actions/download-artifact@v3
43+ with :
44+ name : python-package-distributions
45+ path : dist/
46+ - name : Publish distribution 📦 to PyPI
47+ uses : pypa/gh-action-pypi-publish@release/v1
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11pytest == 5.4.1
22pytest-cov == 2.11.1
3- pytest-pep8 == 1.0.6
4- pytest-travis-fold == 1.3.0
5- python-coveralls == 2.9.3
63setuptools == 46.1.3
74py-irclib >= 0.1.3.1
You can’t perform that action at this time.
0 commit comments