Move publish jobs to main CI file

This commit is contained in:
Kevin Dewald 2025-04-24 11:22:52 -07:00
parent 3dcc4d7025
commit f4356461ff
2 changed files with 45 additions and 45 deletions

View File

@ -111,7 +111,7 @@ jobs:
with:
libraries: ${{ needs.libraries.outputs.values }}
release:
publish-release:
needs: [simpleble, simplepyble, simplejavable, simpledroidble, simplecble, simplersble]
runs-on: ubuntu-22.04
steps:
@ -133,4 +133,47 @@ jobs:
file: artifacts/**/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
file_glob: true
publish-python:
needs: [release]
runs-on: ubuntu-22.04
permissions:
id-token: write
steps:
- name: Install dependencies
run: pip install twine
- name: "Download Python Wheels"
uses: actions/download-artifact@v4
with:
pattern: simplepyble-*-*
path: wheels
merge-multiple: true
- name: "Download Python source distribution"
uses: actions/download-artifact@v4
with:
name: simplepyble-sdist
path: sdist
- name: Check packages
run: twine check wheels/*.whl
- name: Check source distribution
run: twine check sdist/simplepyble*.tar.gz
- name: Publish wheels to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: wheels
skip-existing: true
attestations: false # Broken, see: https://github.com/pypa/gh-action-pypi-publish/issues/166
- name: Publish wheels to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: sdist
skip-existing: true
attestations: false # Broken, see: https://github.com/pypa/gh-action-pypi-publish/issues/166

View File

@ -84,49 +84,6 @@ jobs:
name: simplepyble-${{ matrix.config.os }}-${{ matrix.config.arch }}
path: wheelhouse/*.whl
publish:
needs: [build-sdist, build-wheels]
runs-on: ubuntu-22.04
permissions:
id-token: write
steps:
- name: Install dependencies
run: pip install twine
- name: "Download Python Wheels"
uses: actions/download-artifact@v4
with:
pattern: simplepyble-*-*
path: wheels
merge-multiple: true
- name: "Download Python source distribution"
uses: actions/download-artifact@v4
with:
name: simplepyble-sdist
path: sdist
- name: Check packages
run: twine check wheels/*.whl
- name: Check source distribution
run: twine check sdist/simplepyble*.tar.gz
- name: Publish wheels to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: wheels
skip-existing: true
attestations: false # Broken, see: https://github.com/pypa/gh-action-pypi-publish/issues/166
- name: Publish wheels to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: sdist
skip-existing: true
attestations: false # Broken, see: https://github.com/pypa/gh-action-pypi-publish/issues/166
# tests:
# runs-on: ubuntu-22.04