From f28396fd31f71b07a6792cc40ceaf79ad24c00c4 Mon Sep 17 00:00:00 2001 From: Praful932 Date: Sun, 20 Dec 2020 13:12:23 +0530 Subject: [PATCH] Update testpypi to pypi for first release --- .github/workflows/add_version.py | 2 +- .github/workflows/publish-package.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add_version.py b/.github/workflows/add_version.py index a89a00c..5763f94 100644 --- a/.github/workflows/add_version.py +++ b/.github/workflows/add_version.py @@ -5,7 +5,7 @@ with open("setup.py") as f: lines = f.readlines() -lines[4] = "version = '" + new_version + "'\n" +lines[4] = "version = '" + new_version[1:] + "'\n" with open("setup.py", "w") as f: f.writelines(lines) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index d8dc5e4..9670c69 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -36,7 +36,7 @@ jobs: git config --local user.email "${{ secrets.EMAIL }}" git config --local user.name "${{ secrets.USERNAME }}" git add setup.py - git commit -m "Release v${{ github.event.release.tag_name }}" + git commit -m "Release ${{ github.event.release.tag_name }}" - name: Push changes uses: ad-m/github-push-action@master with: