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 12, 2024
1 parent 44a9a0d commit 114867f
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
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 install
- name: Publish package
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish --build

0 comments on commit 114867f

Please sign in to comment.