Release exe #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release-deploy | |
on: | |
pull_request: | |
# release: | |
# types: [ published ] | |
jobs: | |
deploy: | |
strategy: | |
fail-fast: true | |
matrix: | |
python-version: [ '3.10' ] | |
os: [ 'ubuntu-latest', 'windows-latest' ] | |
runs-on: ${{ matrix.os }} | |
name: Deploy to ${{ matrix.os }} 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 pip install -r requirements-dev.txt | |
python -m build | |
pyinstaller dicom-validator.spec -y | |
# - name: Publish package to PyPI | |
# uses: pypa/gh-action-pypi-publish@release/v1 | |
# with: | |
# user: __token__ | |
# password: ${{ secrets.PYPI_TOKEN_VALIDATOR }} | |
- name: Publish Windows executables on GitHub | |
uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
if: matrix.os == 'windows-latest' | |
with: | |
files: | | |
- dist/validate_iods.exe | |
- dist/dump_dcm_info.exe |