Merge pull request #597 from Honny1/fix-client #71
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |