From 0085cd595d53fbe272ad01764f2e26495509d772 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Mendoza=20P=C3=A9rez?= Date: Sat, 9 Apr 2022 12:47:54 +0200 Subject: [PATCH] release-script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Antonio Mendoza PΓ©rez --- .github/workflows/python-release.yml | 41 ++++++++++++++++++++++++++++ setup.py | 2 +- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/python-release.yml 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",