diff --git a/.github/workflows/python-release.yml b/.github/workflows/python-release.yml new file mode 100644 index 0000000..29787ea --- /dev/null +++ b/.github/workflows/python-release.yml @@ -0,0 +1,41 @@ +name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI + + +on: + release: + types: [created] + + +jobs: + build-n-publish: + name: Build and publish Python 🐍 distributions 📦 to PyPI + runs-on: "ubuntu-latest" + + steps: + - uses: "actions/checkout@v2" + - uses: "actions/setup-python@v2" + with: + python-version: 3.9 + + - name: Install dependencies + run: | + pip install pipenv + pip install build + pipenv install --dev + + - name: Test + run: | + pipenv run pytest + + - name: Build + run: >- + python -m + build + --sdist + --wheel + --outdir dist/ + + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@master + with: + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/setup.py b/setup.py index e76ee73..815a103 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name='serverlessworkflow.sdk', packages=find_packages(include=['serverlessworkflow', 'serverlessworkflow.sdk']), - version='0.1.0', + version='1.0.0', description='Serverless Workflow Specification - Python SDK', long_description=readme, long_description_content_type="text/markdown",