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: