diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7480174..f664e95 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -430,6 +430,12 @@ jobs: shell: bash run: ls -la wheelhouse - run: 'echo "Automatic Release Notes. TODO: improve" > ${{ github.workspace }}-CHANGELOG.txt' + - name: Tag Release Commit + if: (startsWith(github.event.ref, 'refs/heads/release')) + run: |- + export VERSION=$(python -c "import setup; print(setup.VERSION)" + git tag "v$VERSION" + git push origin "v$VERSION" - uses: softprops/action-gh-release@v1 name: Create Release id: create_release diff --git a/setup.py b/setup.py old mode 100644 new mode 100755