v1.3.1 #20
Workflow file for this run
This file contains 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: Release to pypi | |
on: | |
release: | |
types: [released] | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi | |
url: https://pypi.org/p/pydantic-aioredis | |
permissions: | |
id-token: write | |
steps: | |
- name: Check out the repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 2 | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: "3.11" | |
- name: Install pip and poetry | |
run: | | |
pip install --upgrade --constraint .github/workflows/constraints.txt pip poetry | |
pip --version | |
poetry --version | |
- name: Build package | |
run: | | |
poetry build | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |