Skip to content

Commit

Permalink
testing new publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfcabral committed Mar 11, 2024
1 parent 44a9a0d commit a29674e
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
name: Build and publish python package
name: Publish to PyPI

on:
release:
types: [ published ]
types:
- created

jobs:
publish-service-client-package:
publish:
name: Publish package to PyPI
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Publish PyPi package
uses: code-specialist/pypi-poetry-publish@v1
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_REGISTRY_PASSWORD: ${{ secrets.PYPI_TOKEN }}
python-version: 3.11

- name: Install dependencies
run: |
pip install poetry
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
poetry install
- name: Publish package
run: poetry publish --build

0 comments on commit a29674e

Please sign in to comment.