forked from ipinfo/python
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (32 loc) · 795 Bytes
/
cd_pypi.yml
File metadata and controls
43 lines (32 loc) · 795 Bytes
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
35
36
37
38
39
40
41
42
43
name: Release Python Package to pypi
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/ipinfo
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.10.7"
enable-cache: true
cache-dependency-glob: "requirements.txt"
- name: Install dependencies
run: uv pip install --system -r requirements.txt
- name: Build package
run: uv build --no-build-isolation
- name: Publish package
run: uv publish