diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..65821f9 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Publish Package to PyPi +on: + release: + types: [published] +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.12.0 + uses: actions/setup-python@v4 + with: + python-version: 3.12.0 + - name: Display Python version + run: python -c "import sys; print(sys.version)" + - run: pip install virtualenv + - run: virtualenv venv + - run: source venv/bin/activate + - run: pip install setuptools + - run: python setup.py sdist + - run: pip wheel . -w dist + - run: python -m pip install --upgrade twine + - run: twine upload dist/* diff --git a/setup.py b/setup.py index 8d3fcbf..8bd37f0 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,8 @@ from setuptools import find_packages, setup setup( - name='flowableexternalworker', - packages=find_packages(include=['flowableexternalworker']), + name='flowable.external-worker-client', + packages=find_packages(include=['flowable.external-worker-client']), version='0.0.2', description='Flowable External Worker Library to connect Python code to Flowable using an external worker.', author='Flowable',