From 4de866de209f6c863b3782ccc0957b9d3e5e7f78 Mon Sep 17 00:00:00 2001 From: thunderbiscuit Date: Tue, 22 Feb 2022 14:04:02 -0500 Subject: [PATCH] Bump package version to 0.0.5 --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++++------ setup.py | 2 +- 2 files changed, 29 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2aa6603..24c75c7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,5 @@ on: [push, pull_request] -name: Build wheels +name: Build and publish wheels # We use manylinux2014 because older CentOS versions used by 2010 and 1 have a very old glibc version, which # makes it very hard to use GitHub's javascript actions (checkout, upload-artifact, etc). @@ -109,12 +109,34 @@ jobs: path: dist/*.whl publish-pypi: + name: 'Publish on PyPI' + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + runs-on: ubuntu-latest needs: [build-manylinux2014-x86_64-wheel, build-macos-universal-wheel, build-windows-wheel] - - name: 'Publish on PyPI' - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + # needs: [build-macos-universal-wheel] + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: 'Download artifacts in dist/ directory' + uses: actions/download-artifact@v2 + with: + path: dist/ + + # - name: Display structure of downloaded files + # run: ls -R + + # - name: 'Publish on test PyPI' + # uses: pypa/gh-action-pypi-publish@release/v1 + # with: + # user: __token__ + # password: ${{ secrets.TEST_PYPI_API_TOKEN }} + # repository_url: https://test.pypi.org/legacy/ + # packages_dir: dist/*/ + + - name: 'Publish on PyPI' uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ - password: ${{ secrets.TEST_PYPI_API_TOKEN }} - repository_url: https://test.pypi.org/legacy/ - + password: ${{ secrets.PYPI_API_TOKEN }} + packages_dir: dist/*/ \ No newline at end of file diff --git a/setup.py b/setup.py index 3e36a59..4c49a3a 100644 --- a/setup.py +++ b/setup.py @@ -61,7 +61,7 @@ rust_ext = RustExtension( setup( name = 'bdkpython', - version = '0.1.0', + version = '0.0.5', description="The Python language bindings for the bitcoindevkit", long_description=LONG_DESCRIPTION, long_description_content_type='text/markdown',