-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 911 Bytes
/
release.yml
File metadata and controls
34 lines (32 loc) · 911 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
name: release-on-main
on:
push:
branches: [main]
jobs:
release:
if: "!startsWith(github.event.head_commit.message, 'chore(release):')"
runs-on: ubuntu-latest
environment:
name: pypi
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.14"
- uses: astral-sh/setup-uv@v7
with:
version: "0.10.4"
- run: uv version --bump patch
- run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add pyproject.toml uv.lock
if ! git diff --staged --quiet; then
git commit -m "chore(release): bump version [skip ci]"
git push
fi
- run: uv build --no-sources
- run: uv publish