Skip to content

Commit

Permalink
add release configuration to publish it to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
vzickner committed Nov 6, 2023
1 parent e61a8d5 commit f870177
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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/*
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit f870177

Please sign in to comment.