From 11761b3415ca04f537407e0146fb69993e3704ca Mon Sep 17 00:00:00 2001 From: Artemy Pozdnyakov Date: Mon, 10 Jun 2024 16:51:13 +0300 Subject: [PATCH] [FIX-4] Bump version for correct PyPI package name (#8) * Run publish on push Signed-off-by: aapozd * Access through secrets Signed-off-by: aapozd * Run publish only if ref contains tag Signed-off-by: aapozd * Bump patch version Signed-off-by: aapozd --------- Signed-off-by: aapozd --- .github/workflows/default.yml | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 651c517..0953e01 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -68,7 +68,7 @@ jobs: publish-wheel: runs-on: ubuntu-latest - if: github.event.action == 'create' + if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/')}} needs: - linters - pytest @@ -87,5 +87,5 @@ jobs: $POETRY_HOME/bin/poetry --version - name: Build and publish run: | - $POETRY_HOME/bin/poetry config pypi-token.pypi ${{ env.PYPI_TOKEN }} + $POETRY_HOME/bin/poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} $POETRY_HOME/bin/poetry publish --build diff --git a/pyproject.toml b/pyproject.toml index 9be0f98..ce66b8a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "open-pcc-metric" -version = "0.1.1" +version = "0.1.2" description = "" authors = ["aapozd "] license = "MIT"