Skip to content

Test deploy workflow #2

Test deploy workflow

Test deploy workflow #2

name: publish-pypi-deploy
on:
release:
types: [ published ]
# pull_request:
# branches: [ main ]
jobs:
build:
name: Build the package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build package
run: |
python -m pip install -U pip
python -m pip install build
python -m build
- name: Upload artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist/
name: Upload release to PyPI

Check failure on line 36 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 36
needs: [ build ]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/types-pydicom/
permissions:
id-token: write
steps:
- name: Download the package files
uses: actions/download-artifact@v4
with:
path: dist/
merge-multiple: true
- name: Publish package to PyPi
uses: pypa/gh-action-pypi-publish@release/v1