Skip to content

Commit

Permalink
Test dev publish
Browse files Browse the repository at this point in the history
  • Loading branch information
elx-cbrandom committed Jan 26, 2024
1 parent 6b72fe7 commit 1367a69
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python Build and Publish
name: generate-python-client

on: [push]

Expand Down Expand Up @@ -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/

20 changes: 20 additions & 0 deletions .github/workflows/test-pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -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/

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cachethq_client"
version = "0.1.2"
version = "0.1.3"
description = ""
authors = ["cbrand <chris.brandom@elyxor.com>"]
readme = "README.md"
Expand Down

0 comments on commit 1367a69

Please sign in to comment.