-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 823 Bytes
/
Copy pathrelease.yml
File metadata and controls
42 lines (33 loc) · 823 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
35
36
37
38
39
40
41
42
name: Release
on:
workflow_run:
workflows: ["Test"]
types: [completed]
branches: [main]
concurrency:
group: release
cancel-in-progress: false
permissions:
contents: write
id-token: write
jobs:
release:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
environment: pypi
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@v6
with:
python-version: "3.14"
- run: uv sync
- name: Semantic Release
id: release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: uv run semantic-release version
- name: Publish to PyPI
if: steps.release.outcome == 'success'
run: uv publish --trusted-publishing always