Skip to content

Commit 85a9725

Browse files
committed
testing release cd
1 parent 8422aa1 commit 85a9725

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/on_tag_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Create Distribution Package
2929
env:
3030
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
31-
run: sed -i -r s"/VERSION = \"(.*)\"/VERSION = \"$RELEASE_VERSION\"/"g setup.py && python setup.py sdist
31+
run: sed -i -e "s/__VERSION__/$RELEASE_VERSION/g" setup.py && python setup.py sdist
3232
- name: Publish package
3333
uses: pypa/gh-action-pypi-publish@release/v1
3434
with:

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
with open('requirements.txt', 'r') as fin:
1212
REQS = fin.read().splitlines()
1313

14-
__VERSION__ = '0.2.5'
14+
VERSION = '__VERSION__'
1515

1616
setuptools.setup(
17-
version=__VERSION__,
17+
version=VERSION,
1818
name='fastapi-router-controller',
1919
author='Pasquale Carmine Carbone',
2020
author_email='[email protected]',

0 commit comments

Comments
 (0)