Skip to content

Commit a9e6ed6

Browse files
authored
Add automated release process (#1119)
1 parent 01f34f5 commit a9e6ed6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/main.yml

Lines changed: 22 additions & 0 deletions
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:
@@ -124,3 +126,23 @@ jobs:
124126
with:
125127
name: html-report
126128
path: htmlcov
129+
130+
release:
131+
needs: [coverage]
132+
if: success() && startsWith(github.ref, 'refs/tags/')
133+
runs-on: ubuntu-24.04
134+
environment: release
135+
136+
permissions:
137+
contents: read
138+
id-token: write
139+
140+
steps:
141+
- uses: actions/checkout@v4
142+
143+
- uses: astral-sh/setup-uv@v3
144+
145+
- name: Build
146+
run: uv build
147+
148+
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)