Skip to content

Commit f870177

Browse files
committed
add release configuration to publish it to pypi
1 parent e61a8d5 commit f870177

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish Package to PyPi
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
id-token: write
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python 3.12.0
14+
uses: actions/setup-python@v4
15+
with:
16+
python-version: 3.12.0
17+
- name: Display Python version
18+
run: python -c "import sys; print(sys.version)"
19+
- run: pip install virtualenv
20+
- run: virtualenv venv
21+
- run: source venv/bin/activate
22+
- run: pip install setuptools
23+
- run: python setup.py sdist
24+
- run: pip wheel . -w dist
25+
- run: python -m pip install --upgrade twine
26+
- run: twine upload dist/*

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from setuptools import find_packages, setup
22

33
setup(
4-
name='flowableexternalworker',
5-
packages=find_packages(include=['flowableexternalworker']),
4+
name='flowable.external-worker-client',
5+
packages=find_packages(include=['flowable.external-worker-client']),
66
version='0.0.2',
77
description='Flowable External Worker Library to connect Python code to Flowable using an external worker.',
88
author='Flowable',

0 commit comments

Comments
 (0)