Skip to content

Commit

Permalink
change github workflow to set version on tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
livioribeiro committed Apr 17, 2024
1 parent 6be2f0c commit 2a03f63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
tags:
- "v*.*.*"

env:
VERSION: ${{ github.ref_name }}

jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <livioribeiro@outlook.com>"]
license = "MIT"
Expand Down

0 comments on commit 2a03f63

Please sign in to comment.