From 2a03f63d3a079acfd2bfa1a3850843adc1c8e5ef Mon Sep 17 00:00:00 2001 From: Livio Ribeiro Date: Wed, 17 Apr 2024 17:41:52 -0300 Subject: [PATCH] change github workflow to set version on tag name --- .github/workflows/publish.yml | 4 ++++ pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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"