diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 50b70f9e..625a55d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -250,7 +250,7 @@ jobs: name: Upload to pypi needs: [build_wheels, build_sdist] runs-on: ubuntu-latest - if: github.ref == 'refs/heads/master' + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') steps: - uses: actions/setup-python@v4 with: diff --git a/src/pymatching/_version.py b/src/pymatching/_version.py index ad402ca8..77002d2c 100644 --- a/src/pymatching/_version.py +++ b/src/pymatching/_version.py @@ -1 +1 @@ -__version__ = "2.0.dev0" # pragma no cover +__version__ = "2.0.0" # pragma no cover