Skip to content

Commit 5135a91

Browse files
authored
Merge pull request #425 from saimn/test-wheels
Test wheels
2 parents 1f6b335 + 87980d6 commit 5135a91

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
22

33
on:
4+
pull_request:
45
push:
56
tags:
67
- '*'
@@ -9,6 +10,7 @@ jobs:
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
@@ -27,14 +29,8 @@ jobs:
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 }}

0 commit comments

Comments
 (0)