Skip to content

Commit

Permalink
Add workflow to publish pkg to test.pypi.or
Browse files Browse the repository at this point in the history
  • Loading branch information
povilasb committed Oct 24, 2024
1 parent d5749dc commit 1fd8888
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish-to-test-pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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"

- 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/

0 comments on commit 1fd8888

Please sign in to comment.