Skip to content

Commit 6e487c0

Browse files
authored
Add automated release process (#652)
1 parent bd36771 commit 6e487c0

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/main.yml

+22
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
tags:
8+
- '**'
79
pull_request:
810

911
concurrency:
@@ -89,3 +91,23 @@ jobs:
8991
with:
9092
name: html-report
9193
path: htmlcov
94+
95+
release:
96+
needs: [coverage]
97+
if: success() && startsWith(github.ref, 'refs/tags/')
98+
runs-on: ubuntu-24.04
99+
environment: release
100+
101+
permissions:
102+
contents: read
103+
id-token: write
104+
105+
steps:
106+
- uses: actions/checkout@v4
107+
108+
- uses: astral-sh/setup-uv@v3
109+
110+
- name: Build
111+
run: uv build
112+
113+
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)