From 4e09d4497440cd5f66add3be46e0c2471dad8b2d Mon Sep 17 00:00:00 2001 From: Henrique Musseli Cezar Date: Mon, 25 Sep 2023 16:19:38 +0200 Subject: [PATCH] Change gh release action and bump version. --- .github/workflows/release.yml | 3 ++- clusttraj/__init__.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7e7fd55..fd539bc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,6 +29,7 @@ jobs: - build runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') # only publish to TestPyPI on tag pushes environment: name: release url: https://test.pypi.org/p/clusttraj @@ -98,6 +99,6 @@ jobs: # `dist/` contains the built packages, and the # sigstore-produced signatures and certificates. run: >- - gh release upload + gh release create '${{ github.ref_name }}' dist/** --repo '${{ github.repository }}' diff --git a/clusttraj/__init__.py b/clusttraj/__init__.py index 9ef4758..dbab531 100644 --- a/clusttraj/__init__.py +++ b/clusttraj/__init__.py @@ -1,6 +1,6 @@ from .main import main -__version__ = "0.1.1" +__version__ = "0.1.2" __all__ = [ "main",