File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change 1
- name : Publish distributions to PyPI (releases only) and TestPyPI (all commits)
1
+ name : Publish distributions to PyPI
2
2
3
- on : push
3
+ # if this workflow is modified to be a generic CI workflow then
4
+ # add an if statement to the publish step so it only runs on tags.
5
+ on :
6
+ push :
7
+ tags :
8
+ - " v*"
4
9
5
10
jobs :
6
11
build-n-publish :
7
- name : Build and publish distributions to PyPI (releases only) and TestPyPI (all commits)
12
+ name : Build and publish distributions to PyPI
8
13
if : github.repository == 'pvlib/pvlib-python'
9
14
runs-on : ubuntu-latest
10
15
steps :
26
31
- name : Build packages
27
32
run : python setup.py sdist bdist_wheel
28
33
29
- - name : Publish distribution to Test PyPI
30
- uses : pypa/gh-action-pypi-publish@master
31
- with :
32
- user : __token__
33
- password : ${{ secrets.test_pypi_password }}
34
- repository_url : https://test.pypi.org/legacy/
35
-
36
34
- name : Publish distribution to PyPI
37
- if : startsWith(github.ref, 'refs/tags')
38
35
uses : pypa/gh-action-pypi-publish@master
39
36
with :
40
37
user : __token__
You can’t perform that action at this time.
0 commit comments