You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
name: Publish to PyPI
on:
release:
types:
- published
permissions:
contents: read
jobs:
build-and-publish-test-pypi:
name: PyPI - Build and publish Python 🐍 distributions 📦
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Poetry Setup
uses: snok/install-poetry@v1
with:
version: 1.4.0
- name: Build and publish to test pypi
run: |
poetry version ${{ github.event.release.tag_name }}