diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 6937669..47eb5af 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -11,15 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - # TODO: figure out the right version format to avoid HTTP Error 400: '0.0.0.post1.dev0+d94ae2e' is an invalid value for Version. Error: Can't use PEP 440 local versions. See https://packaging.python.org/specifications/core-metadata for more information. - # - name: Build and publish to TESTpypi - # uses: JRubics/poetry-publish@v1.16 - # if: github.ref == 'refs/heads/main' - # with: - # pypi_token: ${{ secrets.PYPI_TOKEN_TEST }} - # repository_name: "testpypi" - # repository_url: "https://test.pypi.org/legacy/" - # plugins: "poetry-dynamic-versioning[plugin]" + - run: | + git fetch --prune --unshallow --tags - name: Build and publish to pypi uses: JRubics/poetry-publish@v1.16 if: github.event_name == 'release' diff --git a/pyproject.toml b/pyproject.toml index 71ebf64..6e0f3d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,4 +27,4 @@ monoplane = "monoplane.cli:cli" mp = "monoplane.cli:cli" [tool.poetry-dynamic-versioning] -enable = true \ No newline at end of file +enable = true