Skip to content

Commit

Permalink
👷 Upload Python Package to TestPyPI (#4)
Browse files Browse the repository at this point in the history
* 👷 Upload Python Package to TestPyPI

Signed-off-by: ff137 <[email protected]>

* 👷 Update project name and version for testpypi

Signed-off-by: ff137 <[email protected]>

* 🎨

Signed-off-by: ff137 <[email protected]>

---------

Signed-off-by: ff137 <[email protected]>
  • Loading branch information
ff137 authored Nov 14, 2024
1 parent 1d7d491 commit d425b2d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
@@ -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/*
2 changes: 1 addition & 1 deletion acapy_agent/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit d425b2d

Please sign in to comment.