3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-12 11:54:07 +00:00

publish test pypi

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2026-02-10 20:45:36 -08:00
parent 33c79d5ee8
commit 770eb960be

View file

@ -10,6 +10,11 @@ on:
description: 'Force nightly build'
required: false
default: 'true'
publish_test_pypi:
description: 'Publish to Test PyPI'
required: false
type: boolean
default: false
permissions:
contents: write
@ -706,3 +711,27 @@ jobs:
--prerelease \
--target ${{ github.sha }} \
$(cat release_files.txt | tr '\n' ' ')
publish-test.pypi:
name: "Publish to test.PyPI"
if: ${{ github.event.inputs.publish_test_pypi == 'true' }}
needs: [python-package]
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
contents: read
steps:
- name: Download Python packages
uses: actions/download-artifact@v7.0.0
with:
name: PythonPackage
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist
repository-url: https://test.pypi.org/legacy/