From 429e89ec491fd61b2808af194230cd36a0ee93d4 Mon Sep 17 00:00:00 2001 From: Sam Courtemanche Date: Sat, 21 Nov 2020 16:32:33 +0100 Subject: [PATCH 1/2] version: bump to 0.0.2 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c1a829c..494b92b 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="smlep_news", - version="0.0.1", + version="0.0.2", description="Custom news scrapper", long_description=long_description, long_description_content_type="text/markdown", From 7e13723f07c13aadf405565b55c39b0f34768e22 Mon Sep 17 00:00:00 2001 From: Sam Courtemanche Date: Sat, 21 Nov 2020 16:38:25 +0100 Subject: [PATCH 2/2] actions: only trigger pip upload on master and skip failures on testypi --- .github/workflows/publish-to-pypi.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 1edf550..dfff3c3 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -1,6 +1,9 @@ name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI -on: push +on: + push: + branches: + - master jobs: build-n-publish: name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI @@ -30,6 +33,7 @@ jobs: with: password: ${{ secrets.test_pypi_password }} repository_url: https://test.pypi.org/legacy/ + skip_existing: true - name: Publish distribution 📦 to PyPI if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master