Skip to content

Commit d2cbb5d

Browse files
authored
Adding publish workflow (#7)
* adding publish workflow * publish workflow v2 * version bump, bug fix * file rename * file rename * deleting old file * adding pypi url
1 parent 45c90a1 commit d2cbb5d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build and Publish Client to PyPI
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
build-and-publish-client:
7+
runs-on: ubuntu-latest
8+
environment:
9+
name: pypi
10+
url: https://pypi.org/p/pydicomweb-client
11+
permissions:
12+
id-token: write
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
- name: Install uv
17+
uses: astral-sh/setup-uv@v6
18+
with:
19+
version: "0.7.2"
20+
- name: Setup Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version-file: "pyproject.toml"
24+
- name: Build wheel and sdist
25+
run: uv build
26+
- name: Publish package distributions to PyPI
27+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)