From e062c3b39760028bd8ddd3355e4a6e70c77f1e66 Mon Sep 17 00:00:00 2001 From: erexer <13180883+erexer@users.noreply.github.com> Date: Mon, 18 Nov 2024 08:23:27 -0800 Subject: [PATCH] only push to test.pypi on a tagged push, fix test badge --- .github/workflows/publish-to-pypi.yml | 3 ++- README.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 6499ed6..6c21868 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -101,6 +101,7 @@ jobs: publish-to-testpypi: name: Publish to TestPyPI + if: startsWith(github.ref, 'refs/tags/') # only publish to test.PyPI on tag pushes needs: - build runs-on: ubuntu-latest @@ -122,4 +123,4 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://test.pypi.org/legacy/ - verbose: true \ No newline at end of file + verbose: true diff --git a/README.md b/README.md index 5c15b31..2368f90 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![build](https://github.com/IMMM-SFA/mosartwmpy/actions/workflows/build.yml/badge.svg)](https://github.com/IMMM-SFA/mosartwmpy/actions/workflows/build.yml) +[![test](https://github.com/IMMM-SFA/mosartwmpy/actions/workflows/test.yml/badge.svg)](https://github.com/IMMM-SFA/mosartwmpy/actions/workflows/test.yml) [![codecov](https://codecov.io/gh/IMMM-SFA/mosartwmpy/branch/main/graph/badge.svg?token=IPOY8984MB)](https://codecov.io/gh/IMMM-SFA/mosartwmpy) [![DOI](https://joss.theoj.org/papers/10.21105/joss.03221/status.svg)](https://doi.org/10.21105/joss.03221) [![DOI](https://zenodo.org/badge/312114600.svg)](https://zenodo.org/badge/latestdoi/312114600)