Skip to content

Prep2.4b (#1807)

Prep2.4b (#1807) #6

name: publish-pypi-deploy
on:
release:
types: [ published ]
workflow_dispatch

Check failure on line 6 in .github/workflows/publish-pypi-deploy.yml

View workflow run for this annotation

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

Invalid workflow file

You have an error in your yaml syntax on line 6
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: [ '3.10' ]
environment:
name: testpypi # pypi
url: https://test.pypi.org/legacy/ # https://pypi.org/p/pydicom
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
- 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 flit
flit build
# Run tests? Removed for now as merge into main does full testing
- name: Upload release to PyPI
# Note: in docs at https://github.com/pypa/gh-action-pypi-publish,
# it is suggested to publish in its own job, using 'needs' to
# ensure previous job succeeded, and artifact upload/download of
# the dist folder. That seems to be related mainly to multi-OS builds,
# so done in same job here.
uses: pypa/gh-action-pypi-publish@release/v1