Skip to content

Commit e1e3883

Browse files
Update pypi.yml
- Updated to match uv docs on trusted publishing
1 parent 033ec7d commit e1e3883

1 file changed

Lines changed: 12 additions & 18 deletions

File tree

.github/workflows/pypi.yml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
1-
name: bods-client-pypi
1+
name: Release
22
on:
33
push:
4-
tags: "*"
4+
tags:
5+
- v*
56
jobs:
6-
publish:
7-
name: publish
7+
pypi:
8+
name: Publish to PyPI
89
runs-on: ubuntu-latest
10+
environment:
11+
name: release
12+
permissions:
13+
id-token: write
914
steps:
1015
- uses: actions/checkout@v4
11-
- name: Install uv
12-
uses: astral-sh/setup-uv@v5
13-
- name: Setup Python 3
14-
uses: actions/setup-python@v5
15-
with:
16-
python-version: "3.12"
17-
- name: Install dependencies
18-
run: |
19-
uv sync
20-
- name: Publish to pypi
21-
shell: bash
22-
run: |
23-
uv build
24-
uv publish --trusted-publishing automatic
16+
- uses: astral-sh/setup-uv@v5
17+
- run: uv build
18+
- run: uv publish --trusted-publishing always

0 commit comments

Comments
 (0)