mirror of
https://github.com/OpenBluetoothToolbox/SimpleBLE
synced 2025-05-08 21:47:10 +08:00
Move publish jobs to main CI file
This commit is contained in:
parent
3dcc4d7025
commit
f4356461ff
47
.github/workflows/ci_main.yml
vendored
47
.github/workflows/ci_main.yml
vendored
@ -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
|
43
.github/workflows/ci_simplepyble.yml
vendored
43
.github/workflows/ci_simplepyble.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user