diff --git a/.github/workflows/pythonpublish.yml b/.github/workflows/pythonpublish.yml index c74ef590df..74fb6a26eb 100644 --- a/.github/workflows/pythonpublish.yml +++ b/.github/workflows/pythonpublish.yml @@ -1,29 +1,30 @@ -name: Upload Python Package +name: Upload Python Package to TestPyPI on: release: types: [created] + workflow_dispatch: # Allows manual triggering of the workflow for testing jobs: deploy: runs-on: ubuntu-latest - environment: - name: pypi - url: https://pypi.org/p/acapy-agent - permissions: - id-token: write # IMPORTANT: this permission is mandatory for trusted publishing + steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.x" - - name: Install build and publish dependencies + - name: Install build dependencies run: | python -m pip install --upgrade pip pip install setuptools wheel twine poetry - - name: Build and publish + - name: Build package distributions run: | poetry build - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + - name: Publish to TestPyPI + env: + TWINE_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }} + run: | + twine upload --repository-url https://test.pypi.org/legacy/ --skip-existing dist/* diff --git a/acapy_agent/version.py b/acapy_agent/version.py index f0b415185b..4e0fac50bf 100644 --- a/acapy_agent/version.py +++ b/acapy_agent/version.py @@ -2,5 +2,5 @@ from importlib import metadata -__version__ = metadata.version("acapy-agent") +__version__ = metadata.version("acapy-agent-didx") RECORD_TYPE_ACAPY_VERSION = "acapy_version" diff --git a/pyproject.toml b/pyproject.toml index a709abe182..2d81a3dfb5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] -name = "acapy_agent" -version = "1.1.0" +name = "acapy_agent_didx" +version = "1.1.1-20241114" description = "(ACA-Py) A Cloud Agent Python is a foundation for building decentralized identity applications and services running in non-mobile environments. " authors = [] license = "Apache-2.0"