-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug: use exact tag instead of github ref for release
- Loading branch information
Showing
2 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|