diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 32193c22..aa0b1d9b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -301,19 +301,20 @@ jobs: - if: | github.event_name == 'release' || - (github.event_name == 'workflow_dispatch' && github.event.inputs.publish-python-wrapper == 'true') - name: Publish + (github.event_name == 'workflow_dispatch' && github.event.inputs.publish-python-wrapper == 'true') || + github.event_name == 'pull_request' + name: Publish to TestPyPI env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + TWINE_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }} run: | - twine upload --skip-existing dist/* + twine upload --repository-url https://test.pypi.org/legacy/ --skip-existing dist/* working-directory: wrappers/python build-javascript: name: Build and test JavaScript wrapper needs: [build-release] - + strategy: matrix: architecture: @@ -327,7 +328,7 @@ jobs: architecture: darwin-universal runs-on: ${{ matrix.os }} - + defaults: run: working-directory: wrappers/javascript @@ -594,4 +595,4 @@ jobs: || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }} - run: exit 1 + run: exit 1 \ No newline at end of file diff --git a/wrappers/python/aries_askar/version.py b/wrappers/python/aries_askar/version.py index 6a70b9e3..a6496671 100644 --- a/wrappers/python/aries_askar/version.py +++ b/wrappers/python/aries_askar/version.py @@ -1,3 +1,3 @@ """aries_askar library wrapper version.""" -__version__ = "0.3.2" +__version__ = "0.3.3b6" diff --git a/wrappers/python/setup.py b/wrappers/python/setup.py index e86c4704..de09810c 100644 --- a/wrappers/python/setup.py +++ b/wrappers/python/setup.py @@ -5,9 +5,9 @@ from setuptools import find_packages, setup -PACKAGE_NAME = "aries_askar" +PACKAGE_NAME = "aries_askar_jamshale" version_meta = runpy.run_path("./{}/version.py".format(PACKAGE_NAME)) -VERSION = version_meta["__version__"] +VERSION = "0.3.3b6" with open(os.path.abspath("./README.md"), "r") as fh: long_description = fh.read()