From c9737a185a519187dbbc48db4137f12d9b37372b Mon Sep 17 00:00:00 2001 From: Rajat Srivastava Date: Wed, 7 Oct 2020 00:32:59 +0530 Subject: [PATCH 1/2] Create python-publish.yml --- .github/workflows/python-publish.yml | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/python-publish.yml diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 00000000..4e1ef42d --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,31 @@ +# This workflows will upload a Python Package using Twine when a release is created +# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries + +name: Upload Python Package + +on: + release: + types: [created] + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* From c9b78a23bd6ed745eba3713c3d67dc233b3c040d Mon Sep 17 00:00:00 2001 From: Rajat Goyal Date: Sun, 1 Nov 2020 14:36:06 +0530 Subject: [PATCH 2/2] Upgrade hsc version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 08834d4c..8603223b 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name='hsc', - version='1.2.2', + version='1.2.3', author='Nullifiers', author_email='nullifiersorg@gmail.com', description='Hackerrank Solution Crawler',