diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 27117b6..1a22c4c 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -28,7 +28,20 @@ jobs: - name: Install Poetry uses: snok/install-poetry@v1 + - name: Get package version + run: echo "PACKAGE_VERSION=$(poetry version -s)" >> $GITHUB_ENV + - name: Build and publish to PyPI run: poetry publish --build -u __token__ -p $PYPI_API_TOKEN env: PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + + - name: Create Tag Release + uses: beyond5959/create-release-github@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: v${{ env.PACKAGE_VERSION }} + release_name: v${{ env.PACKAGE_VERSION }} + draft: false + prerelease: false diff --git a/pyproject.toml b/pyproject.toml index 2ac13f6..50cacac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "zarr-checksum" -version = "0.4.0" +version = "0.4.1" description = "Checksum support for zarrs stored in various backends" readme="README.md" homepage="https://github.com/dandi/zarr_checksum"