-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 965 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
35
36
37
---
name: Publish Python 🐍 distributions 📦 to PyPI
"on":
push:
tags:
- "v*"
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/project/sphinx-c-autodoc
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "0.4.22"
- name: Install dependencies
run: |
uv tool install twine
uv tool install flit
- name: Build a wheel and a source tarball
run: flit build --no-use-vcs
- name: Check with twine
run: twine check dist/*
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@v1.12.3