Skip to content

Commit

Permalink
Merge pull request #57 from dandi/release-tags
Browse files Browse the repository at this point in the history
Add workflow for creating tag and release
  • Loading branch information
jjnesbitt authored Jul 22, 2024
2 parents decd7a1 + 208c940 commit 6480862
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 6480862

Please sign in to comment.