Skip to content

Commit

Permalink
Merge pull request #425 from saimn/test-wheels
Browse files Browse the repository at this point in the history
Test wheels
  • Loading branch information
saimn authored Mar 17, 2021
2 parents 1f6b335 + 87980d6 commit 5135a91
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish Python 🐍 distributions πŸ“¦ to PyPI and TestPyPI

on:
pull_request:
push:
tags:
- '*'
Expand All @@ -9,6 +10,7 @@ jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions πŸ“¦ to PyPI and TestPyPI
runs-on: ubuntu-latest
if: (github.repository == 'saimn/sigal' && (github.event_name == 'tags' || contains(github.event.pull_request.labels.*.name, 'Build wheels')))

steps:
- uses: actions/checkout@master
Expand All @@ -27,14 +29,8 @@ jobs:
- name: Check long_description
run: python -m twine check dist/*

- name: Publish distribution πŸ“¦ to Test PyPI
- name: Publish distribution πŸ“¦ to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/

# - name: Publish distribution πŸ“¦ to PyPI
# if: startsWith(github.ref, 'refs/tags')
# uses: pypa/gh-action-pypi-publish@master
# with:
# password: ${{ secrets.pypi_password }}
password: ${{ secrets.pypi_password }}

0 comments on commit 5135a91

Please sign in to comment.