name: pypi on: release: types: - created jobs: publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: '3.x' - name: Install and configure Poetry run: | pip install -U pip poetry poetry config virtualenvs.create false - name: Build dists run: make build - name: Pypi Publish uses: pypa/gh-action-pypi-publish@master with: user: __token__ password: ${{ secrets.pypi_password }}