Skip to content

Commit

Permalink
Add poetry publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii committed Feb 11, 2024
1 parent 2566b20 commit fd26a3b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/python_cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Python CD

on:
release:
types: [ published ]

jobs:
publish-pypi-package:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Publish PyPi package
uses: code-specialist/pypi-poetry-publish@v1 # https://github.com/marketplace/actions/pypi-poetry-publish
with:
BRANCH: main
PYTHON_VERSION: "3.10"
POETRY_VERSION: 1.7.1
POETRY_CORE_VERSION: 1.9.0
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_REGISTRY_PASSWORD: ${{ secrets.PYPI_TOKEN }}

0 comments on commit fd26a3b

Please sign in to comment.