Rename examples/*-deploy-only.yml to examples/*-deploy.yml, and keep sdist in dist/ in examples/github-deploy.yml

This commit is contained in:
Yannick Jadoul
2020-06-02 17:07:18 +02:00
parent 896337cbb1
commit 9c3f44d086
5 changed files with 9 additions and 10 deletions
@@ -33,7 +33,7 @@ jobs:
- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse
path: ./wheelhouse/*.whl
build_sdist:
name: Build source distribution
@@ -47,11 +47,11 @@ jobs:
python-version: '3.7'
- name: Build sdist
run: python setup.py sdist -d wheelhouse/
run: python setup.py sdist
- uses: actions/upload-artifact@v2
with:
path: wheelhouse/*.tar.gz
path: dist/*.tar.gz
upload_pypi:
needs: [build_wheels, build_sdist]
@@ -68,14 +68,13 @@ jobs:
- uses: actions/download-artifact@v2
with:
name: artifact
path: wheelhouse
path: dist
- run: twine check wheelhouse/*
- run: twine check dist/*
- uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
packages_dir: ./wheelhouse/
# To test: repository_url: https://test.pypi.org/legacy/
if: github.event_name == 'release' && github.event.action == 'published'
+1 -1
View File
@@ -33,4 +33,4 @@ jobs:
- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse
path: ./wheelhouse/*.whl