Skip to content

Commit

Permalink
Merge pull request #119 from bird-house/fix-deploy-pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Feb 1, 2023
2 parents 64b1d2a + 9d427b8 commit 924ba5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ jobs:

deploy_pypi:
needs: tests
if: ${{ success() && (contains(github.ref, 'refs/tags') || github.ref == 'refs/heads/master') }}
# Don't match master branch for upload to avoid duplicate error, even if the tag is usually applied on master.
if: ${{ success() && github.event_name == 'push' && contains(github.ref, 'refs/tags') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -123,3 +124,4 @@ jobs:
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true # For debugging 'twine upload' if a problem occurs.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
version=about['__version__'],
description=about['__doc__'],
long_description=README + '\n\n' + CHANGES,
long_description_content_type="text/x-rst",
classifiers=[
"Development Status :: 4 - Beta",
"Framework :: Pyramid",
Expand Down

0 comments on commit 924ba5b

Please sign in to comment.