Skip to content

Merge pull request #597 from Honny1/fix-client #71

Merge pull request #597 from Honny1/fix-client

Merge pull request #597 from Honny1/fix-client #71

name: Publish Python 🐍 distribution πŸ“¦ to TestPyPI
on:
push:
branches:
- main
jobs:
build:
name: Build distribution πŸ“¦
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Build Python package
uses: ./.github/actions/build-python-package
with:
upload-artifact: true
artifact-name: python-package-distributions-testpypi
publish-to-testpypi:
name: Publish Python 🐍 distribution πŸ“¦ to TestPyPI
if: ${{ github.repository == 'containers/podman-py' }}
needs: build
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/podman
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download artifacts from build job
uses: actions/download-artifact@v5
with:
name: python-package-distributions-testpypi
path: dist/
- name: Publish distribution πŸ“¦ to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true
verbose: true