forked from sopherapps/pydantic-redis
-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (32 loc) · 852 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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