Skip to content

Commit

Permalink
build: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
thefab committed Feb 16, 2021
1 parent 20a84b3 commit 1a63d2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: update setup.py
run: |
TAG=${GITHUB_REF#refs/*/}
sed setup.py -e "s/version=\"0\.0\.0\"/version=\"$TAG\"/" -i
- name: Build and publish
if: startsWith(github.ref, 'refs/tags/v')
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
author="Fabien MARTY",
author_email="[email protected]",
name="jinja2_humanize_extension",
version="0.0.4",
version="0.0.0",
license="BSD",
packages=find_packages(),
install_requires=install_requires,
python_requires='>=3.0',
description="a jinja2 extension to access to system environment variables",
description="a jinja2 extension to use humanize library inside jinja2 templates",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/metwork-framework/jinja2_humanize_extension",
Expand Down

0 comments on commit 1a63d2b

Please sign in to comment.