Skip to content

Commit

Permalink
ci/cd: add package publish to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
codelif authored Sep 20, 2024
1 parent 3b78cdb commit 0b0ba9b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Build and publish python package

on:
release:
types: [ published ]

jobs:
publish-service-client-package:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Publish PyPi package
uses: code-specialist/pypi-poetry-publish@v1
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_REGISTRY_PASSWORD: ${{ secrets.PYPI_API_KEY }}

0 comments on commit 0b0ba9b

Please sign in to comment.