From 64862f86b2fb77458df633478227f58a91a18d0a Mon Sep 17 00:00:00 2001 From: Josef Smith Date: Wed, 21 Jun 2023 09:59:21 +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 0fa03ab..d805731 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 7a3c5b2..aa516eb 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ def long_description(): setuptools.setup( name='stream-unzip', - version='0.0.86', + version='0.0.0.dev0', author='Department for International Trade', author_email='sre@digital.trade.gov.uk', description='Python function to stream unzip all the files in a ZIP archive, without loading the entire ZIP file into memory or any of its uncompressed files',