From bb468298932b8e2d4e8c617c6d87aba06245c8a5 Mon Sep 17 00:00:00 2001 From: Dustin Ingram Date: Mon, 11 Apr 2022 12:06:23 -0400 Subject: [PATCH] Tag releases on release (#100) --- .github/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 72d754a..fe3f5ba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,3 +26,15 @@ jobs: uses: pypa/gh-action-pypi-publish@master with: password: ${{ secrets.pypi_password }} + - name: Version + id: version + run: echo "::set-output name=version::$(python setup.py --version 2>/dev/null)" + - name: Tag + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ steps.version.outputs.version }} + release_name: ${{ steps.version.outputs.version }} + draft: false + prerelease: false