File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change 1
- name : Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
2
-
3
- on : push
1
+ name : Publish Python 🐍 distributions 📦 to PyPI
2
+ on :
3
+ release :
4
+ types : [created]
4
5
5
6
jobs :
6
7
build-n-publish :
7
- name : Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
8
+ name : Build and publish Python 🐍 distributions 📦 to PyPI
8
9
runs-on : ubuntu-18.04
9
10
steps :
10
11
- uses : actions/checkout@master
17
18
python
18
19
setup.py
19
20
sdist
20
- - name : Publish distribution 📦 to PyPI
21
- if : startsWith(github.event.ref, 'refs/tags')
22
- uses : pypa/gh-action-pypi-publish@master
23
- with :
24
- password : ${{ secrets.pypi_password }}
25
- - name : Publish distribution 📦 to Test PyPI
21
+ - name : Publish package
26
22
uses : pypa/gh-action-pypi-publish@master
27
23
with :
28
- password : ${{ secrets.test_pypi_password }}
29
- repository_url : https://test.pypi.org/legacy/
24
+ user : __token__
25
+ password : ${{ secrets.pypi_password }}
You can’t perform that action at this time.
0 commit comments