1
0
Fork 0
mirror of https://github.com/ultrajson/ultrajson.git synced 2024-05-07 09:46:19 +02:00

Upload all wheels from a single, final job

This commit is contained in:
Hugo van Kemenade 2023-06-06 23:01:03 +03:00
parent b5279144da
commit 54f5dfe3b6

View File

@ -58,25 +58,6 @@ jobs:
name: wheels
path: dist/*.whl
- name: Publish package to PyPI
if: github.event.action == 'published'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}
skip-existing: true
- name: Publish package to TestPyPI
if: |
github.repository == 'ultrajson/ultrajson' &&
github.ref == 'refs/heads/main'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.test_pypi_password }}
repository-url: https://test.pypi.org/legacy/
skip-existing: true
build-QEMU-emulated-wheels:
runs-on: ubuntu-latest
strategy:
@ -134,26 +115,7 @@ jobs:
name: wheels
path: dist/*.whl
- name: Publish package to PyPI
if: github.event.action == 'published'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}
skip-existing: true
- name: Publish package to TestPyPI
if: |
github.repository == 'ultrajson/ultrajson' &&
github.ref == 'refs/heads/main'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.test_pypi_password }}
repository-url: https://test.pypi.org/legacy/
skip-existing: true
build-sdist:
build-sdist-and-upload:
runs-on: ubuntu-latest
needs: ['build-native-wheels', 'build-QEMU-emulated-wheels']
@ -174,6 +136,12 @@ jobs:
python -m pip install -U pip
python -m pip install -U build twine
- name: Download wheels from build artifacts
uses: actions/download-artifact@v3
with:
name: wheels
path: dist/
- name: Build package
run: |
git tag