Skip to content

Commit

Permalink
test publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
smjoshiatglobus committed Jul 15, 2024
1 parent 1d78bb9 commit f4778c4
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions .github/workflows/release-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
name: release-deploy

on:
release:
types: [ published ]
pull_request:

# release:
# types: [ published ]

jobs:

deploy:
runs-on: ubuntu-latest
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
Expand All @@ -26,9 +31,20 @@ jobs:
python -m pip install --upgrade pip
python -m pip install build
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 package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Publish Windows executables on GitHub
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: matrix.os == 'windows-latest'
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN_VALIDATOR }}
files: |
- dist/validate_iods.exe
- dist/dump_dcm_info.exe

0 comments on commit f4778c4

Please sign in to comment.