Skip to content

Commit

Permalink
bug: use exact tag instead of github ref for release
Browse files Browse the repository at this point in the history
  • Loading branch information
ykumards committed Sep 19, 2024
1 parent 1b22120 commit f0b19be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/publish-to-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ jobs:
if: success()
run: poetry build

- name: Extract Tag Name
id: extract_tag
run: echo "::set-output name=TAG_NAME::${GITHUB_REF#refs/tags/}"

- name: Publish to PyPI
if: success()
uses: pypa/gh-action-pypi-publish@release/v1
Expand All @@ -43,10 +47,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
tag_name: ${{ steps.extract_tag.outputs.TAG_NAME }}
release_name: Release ${{ steps.extract_tag.outputs.TAG_NAME }}
draft: false
prerelease: true
prerelease: false

- name: Upload Release Assets
uses: AButler/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[tool.poetry]
name = "nag"
version = "0.2.3a4"
version = "0.2.3a5"
description = "A command line time blocker that nags you to get things done"
authors = ["Yogesh Kumar <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit f0b19be

Please sign in to comment.