File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
2
+ on : [release]
3
+
4
+ jobs :
5
+ build-n-publish :
6
+ name : Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
7
+ runs-on : ubuntu-18.04
8
+ strategy :
9
+ matrix :
10
+ python-version : [3.8]
11
+
12
+ steps :
13
+ - uses : actions/checkout@master
14
+
15
+ - name : Set up Python ${{ matrix.python-version }}
16
+ uses : actions/setup-python@v1
17
+ with :
18
+ python-version : ${{ matrix.python-version }}
19
+
20
+ - name : Install pypa/build
21
+ run : python -m pip install setuptools build wheel --user
22
+
23
+ - name : Build a binary wheel
24
+ run : python setup.py sdist bdist_wheel
25
+
26
+ - name : Publish any distribution 📦 to Test PyPI
27
+ uses : pypa/gh-action-pypi-publish@master
28
+ with :
29
+ password : ${{ secrets.TEST_PYPI_API_TOKEN }}
30
+ repository_url : https://test.pypi.org/legacy/
31
+ skip_existing : true
32
+
33
+ - name : Publish tagged distribution 📦 to PyPI
34
+ if : startsWith(github.ref, 'refs/tags')
35
+ uses : pypa/gh-action-pypi-publish@master
36
+ with :
37
+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 5
5
* .egg-info
6
6
.coverage *
7
7
.idea /*
8
+ /dist
You can’t perform that action at this time.
0 commit comments