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 a35418f..e160bc7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "selva" -version = "0.14.1" +version = "0.0.0" description = "ASGI Web Framework with Dependency Injection" authors = ["Livio Ribeiro "] license = "MIT"