diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d95a9b9..e191d2b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,6 +5,9 @@ on: tags: - "v*.*.*" +env: + VERSION: ${{ github.ref_name }} + jobs: publish: runs-on: ubuntu-latest @@ -17,6 +20,7 @@ jobs: python-version: "3.x" - run: pip install pipx - run: pipx install poetry + - run: poetry version ${VERSION#v} - run: poetry build - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/pyproject.toml b/pyproject.toml index 7a49e76..e64ce4d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "asgikit" -version = "0.7.1" +version = "0.0.0" description = "Toolkit for building ASGI applications and libraries" authors = ["Livio Ribeiro "] license = "MIT"