From e36e2d386bce088ffcb63a9ff0e3ee549f0dda75 Mon Sep 17 00:00:00 2001 From: Bob Clough Date: Tue, 5 Dec 2023 14:28:26 +0000 Subject: [PATCH] pypi: move from pushing a test release every MR to pushing only on tag --- .github/workflows/release.yml | 3 ++- docs/source/conf.py | 2 +- lifecycle/__init__.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 37050de..8c38010 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,7 +38,8 @@ jobs: --outdir dist/ . - - name: Publish to test PyPI always + - name: Publish to test PyPI on tag to gate release failures + if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.TEST_PYPI_API_TOKEN }} diff --git a/docs/source/conf.py b/docs/source/conf.py index b7133a3..7675275 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -13,7 +13,7 @@ author = "Codethink Ltd" release = "0.1" -version = "0.1.1" +version = "0.1.2" # -- General configuration diff --git a/lifecycle/__init__.py b/lifecycle/__init__.py index fe97431..0664599 100644 --- a/lifecycle/__init__.py +++ b/lifecycle/__init__.py @@ -1,6 +1,6 @@ """Lifecycle management namespace""" -__version__ = "0.1.1" +__version__ = "0.1.2" from abc import ABC, abstractmethod from collections.abc import Mapping