Skip to content

Commit

Permalink
👷 Add action to publish to pypi.
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalkrupinski committed Jun 29, 2024
1 parent b1c3591 commit e27d477
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish Poetry Package to PyPI

on:
push:
tags:
- 'v*'

jobs:
publish:
runs-on: ubuntu-latest

permissions:
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Poetry
uses: packetcoders/action-setup-cache-python-poetry@main
with:
python-version: 3.12
poetry-version: 1.8.3
- name: Publish to PyPI using OIDC
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_PUBLISH_TOKEN }}
poetry publish --build

0 comments on commit e27d477

Please sign in to comment.