Added workflow to build executable on GitHub #1
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: build-windows-exe | |
on: | |
pull_request: | |
# TODO: Add a release event to trigger the workflow | |
# release: | |
# types: [ published ] | |
jobs: | |
deploy: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
python-version: [ '3.10' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Build package | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r requirements-dev.txt | |
python -m build | |
pyinstaller dicom-validator.spec -y | |
- name: Archive artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: windows_exe | |
path: dist/*.exe | |
# TODO: How to Publish? | |
# - name: Publish package to PyPI | |
# uses: pypa/gh-action-pypi-publish@release/v1 | |
# with: | |
# user: __token__ | |
# password: ${{ secrets.PYPI_TOKEN_VALIDATOR }} |