Skip to content

Commit 6a0d30d

Browse files
authored
Add automated release process (#976)
1 parent e816d10 commit 6a0d30d

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

0 commit comments

Comments
 (0)