From 1367a699ed929fd379d3b50ec1903c12135610eb Mon Sep 17 00:00:00 2001 From: cbrand Date: Fri, 26 Jan 2024 16:17:06 -0500 Subject: [PATCH] Test dev publish --- ...publish.yml => generate-python-client.yml} | 10 +++------- .github/workflows/test-pypi-publish.yml | 20 +++++++++++++++++++ pyproject.toml | 2 +- 3 files changed, 24 insertions(+), 8 deletions(-) rename .github/workflows/{python-build-and-publish.yml => generate-python-client.yml} (75%) create mode 100644 .github/workflows/test-pypi-publish.yml diff --git a/.github/workflows/python-build-and-publish.yml b/.github/workflows/generate-python-client.yml similarity index 75% rename from .github/workflows/python-build-and-publish.yml rename to .github/workflows/generate-python-client.yml index bf1e39a..a8c5522 100644 --- a/.github/workflows/python-build-and-publish.yml +++ b/.github/workflows/generate-python-client.yml @@ -1,4 +1,4 @@ -name: Python Build and Publish +name: generate-python-client on: [push] @@ -31,10 +31,6 @@ jobs: with: arguments: build - name: Build with Poetry - working-directory: ./python-client + working-directory: ./python-client run: poetry build - - name: Publish package distributions to TestPyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - repository-url: https://test.pypi.org/legacy/ - packages-dir: python-client/dist/ \ No newline at end of file + \ No newline at end of file diff --git a/.github/workflows/test-pypi-publish.yml b/.github/workflows/test-pypi-publish.yml new file mode 100644 index 0000000..908ff5d --- /dev/null +++ b/.github/workflows/test-pypi-publish.yml @@ -0,0 +1,20 @@ +name: Test Pypi Publish + +on: + workflow_run: + workflows: [generate-python-client] + branches: [dev] + types: [completed] + +jobs: + publish: + name: Publish to Test Pypi + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} + steps: + - name: Publish package distributions to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ + packages-dir: python-client/dist/ + \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 17c7781..bdf846d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cachethq_client" -version = "0.1.2" +version = "0.1.3" description = "" authors = ["cbrand "] readme = "README.md"