diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml index 2eeae15a8..04332f34d 100644 --- a/.github/workflows/pypi-release.yml +++ b/.github/workflows/pypi-release.yml @@ -20,11 +20,17 @@ jobs: python-version: 3.8 - name: Install dependencies - run: >- - python -m pip install --user --upgrade setuptools wheel - - name: Build - run: >- - python setup.py sdist bdist_wheel + run: python -m pip install -U setuptools wheel build twine + - name: Build package + run: python -m build + - name: Check package + run: twine check dist/* + + - name: Upload to release + uses: AButler/upload-release-assets@v2.0 + with: + files: 'dist/*' + repo-token: ${{ secrets.GITHUB_TOKEN }} # We do this, since failures on test.pypi aren't that bad - name: Publish to Test PyPI