From e4b5b6a9859776cc25933abda6f61dfa4b5ee3e4 Mon Sep 17 00:00:00 2001 From: Josef Smith Date: Wed, 21 Jun 2023 09:52:42 +0100 Subject: [PATCH] feat: automate github release while skipping commit step --- .github/workflows/publish-pypi.yml | 4 ++++ setup.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index 77149a7..745b2ab 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -12,6 +12,10 @@ jobs: with: python-version: 3.11 + - name: Update version in pyproject.toml from current git tag + run: >- + sed -i "s/0\\.0\\.0\\.dev0/${GITHUB_REF/refs\/tags\/v/}/g" setup.py + - run: | pip install build python -m build diff --git a/setup.py b/setup.py index cd08455..3612375 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ def long_description(): setuptools.setup( name='stream-zip', - version='0.0.62', + version='0.0.0.dev0', author='Department for International Trade', author_email='sre@digital.trade.gov.uk', description='Python function to construct a ZIP archive with stream processing - without having to store the entire ZIP in memory or disk',