Skip to content

Commit c71cca7

Browse files
authored
Update deploy workflow
2 parents 98eef9b + 2218728 commit c71cca7

File tree

2 files changed

+12
-25
lines changed

2 files changed

+12
-25
lines changed

.github/workflows/publish-pypi-deploy.yml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,19 @@ name: publish-pypi-deploy
33
on:
44
release:
55
types: [ published ]
6+
# pull_request:
7+
# branches: [ main ]
68

79
jobs:
810

911
build:
1012
name: Build the package
1113
runs-on: ubuntu-latest
14+
environment:
15+
name: pypi
16+
url: https://pypi.org/project/types-pydicom/
17+
permissions:
18+
id-token: write
1219

1320
steps:
1421
- uses: actions/checkout@v4
@@ -21,31 +28,14 @@ jobs:
2128
- name: Build package
2229
run: |
2330
python -m pip install -U pip
24-
python -m pip install flit
25-
flit build
31+
python -m pip install build
32+
python -m build
2633
2734
- name: Upload artifacts
28-
if: ${{ success() }}
2935
uses: actions/upload-artifact@v4
3036
with:
3137
name: wheels
3238
path: dist/
3339

34-
# name: Upload release to PyPI
35-
# needs: [ build ]
36-
# runs-on: ubuntu-latest
37-
# environment:
38-
# name: pypi
39-
# url: https://pypi.org/project/types-pydicom/
40-
# permissions:
41-
# id-token: write
42-
#
43-
# steps:
44-
# - name: Download the package files
45-
# uses: actions/download-artifact@v4
46-
# with:
47-
# path: dist/
48-
# merge-multiple: true
49-
#
50-
# - name: Publish package to PyPi
51-
# uses: pypa/gh-action-pypi-publish@release/v1
40+
- name: Publish package to PyPi
41+
uses: pypa/gh-action-pypi-publish@release/v1

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# types-pydicom
2-
Extended type hints for [pydicom's](https://github.com/pydicom/pydicom)
3-
Dataset element keywords.
2+
Extended type hints for [pydicom's](https://github.com/pydicom/pydicom) [Dataset](https://pydicom.github.io/pydicom/stable/reference/generated/pydicom.dataset.Dataset.html#pydicom.dataset.Dataset) element keywords.
43

54
## Installation
65
```bash
@@ -39,7 +38,5 @@ pip install -e .[dev]
3938

4039
### Updating
4140
```bash
42-
cd types-pydicom
43-
source env/env310/bin/activate
4441
python scripts/update_package.py
4542
```

0 commit comments

Comments
 (0)