Skip to content

Commit

Permalink
Release 0.6.0
Browse files Browse the repository at this point in the history
- adds Windows executable to GitHub release
  • Loading branch information
mrbean-bremen committed Jul 15, 2024
1 parent 7f32d6b commit a4fb503
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 17 deletions.
50 changes: 34 additions & 16 deletions .github/workflows/release-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ on:

jobs:

deploy:
deploy-windows-exe:
strategy:
fail-fast: true
matrix:
python-version: [ '3.10' ]
os: [ 'ubuntu-latest', 'windows-latest' ]

runs-on: ${{ matrix.os }}
name: Deploy for ${{ matrix.os }} with Python ${{ matrix.python-version }}
runs-on: 'windows-latest'
name: Deploy Windows executable for ${{ matrix.os }} with Python ${{ matrix.python-version }}

steps:
- uses: actions/checkout@v4
Expand All @@ -30,25 +29,44 @@ jobs:
python -m pip install build
python -m build
- name: Publish package to PyPI
if: matrix.os == 'ubuntu-latest'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN_VALIDATOR }}

- name: Build Windows executables
if: matrix.os == 'windows-latest'
run: |
python -m pip install -r requirements-dev.txt
pyinstaller dicom-validator.spec -y
- name: Publish Windows executables on GitHub
if: matrix.os == 'windows-latest'
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
- dist/validate_iods.exe
- dist/dump_dcm_info.exe
files: dist/*.exe

publish-to-pypi:
strategy:
fail-fast: true
matrix:
python-version: [ '3.10' ]

runs-on: 'ubuntu-latest'
name: Deploy to PyPi with Python ${{ matrix.python-version }}

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Build package
run: |
python -m pip install --upgrade pip
python -m pip install build
python -m build
- name: Publish package to PyPI
if: matrix.os == 'ubuntu-latest'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN_VALIDATOR }}
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
The released versions correspond to PyPi releases.

## [Version 0.6.0](https://pypi.python.org/pypi/dicom-validator/0.6.0) (0.6.0)
Adds Windows executable to GitHub release.

### Features
* iod_validator: added validation of values against value representations, with
Expand Down
2 changes: 1 addition & 1 deletion dicom_validator/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.6.dev0"
__version__ = "0.6.0"

0 comments on commit a4fb503

Please sign in to comment.