Skip to content

Publish package to test.pypi.org #2

Publish package to test.pypi.org

Publish package to test.pypi.org #2

name: Publish package to test.pypi.org
on:
workflow_dispatch:
jobs:
pypi-publish:
runs-on: ubuntu-22.04
environment:
name: testpypi
url: https://test.pypi.org/p/pydantic2zod
permissions:
id-token: write
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: "3.10"
- uses: Gr1N/setup-poetry@v9
with:
poetry-version: "1.8.4"
- name: Install dependencies
run: poetry install
- name: Build package
run: poetry build
- name: Publish a package
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/