File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 11name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
22
33on:
4+ pull_request:
45 push:
56 tags:
67 - '*'
910 build-n-publish:
1011 name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
1112 runs-on: ubuntu-latest
13+ if: (github.repository == 'saimn/sigal' && (github.event_name == 'tags' || contains(github.event.pull_request.labels.*.name, 'Build wheels')))
1214
1315 steps:
1416 - uses: actions/checkout@master
2729 - name: Check long_description
2830 run: python -m twine check dist/*
2931
30- - name: Publish distribution 📦 to Test PyPI
32+ - name: Publish distribution 📦 to PyPI
33+ if: startsWith(github.ref, 'refs/tags')
3134 uses: pypa/gh-action-pypi-publish@master
3235 with:
33- password: ${{ secrets.test_pypi_password }}
34- repository_url: https://test.pypi.org/legacy/
35-
36- # - name: Publish distribution 📦 to PyPI
37- # if: startsWith(github.ref, 'refs/tags')
38- # uses: pypa/gh-action-pypi-publish@master
39- # with:
40- # password: ${{ secrets.pypi_password }}
36+ password: ${{ secrets.pypi_password }}
You can’t perform that action at this time.
0 commit comments