fix: remove node dep in actions
This commit is contained in:
parent
58815eec71
commit
596b4d4420
1 changed files with 4 additions and 27 deletions
|
|
@ -7,8 +7,8 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-and-publish:
|
||||||
name: Build (${{ matrix.runner }}, py${{ matrix.python }})
|
name: Build & Publish (${{ matrix.runner }}, py${{ matrix.python }})
|
||||||
runs-on: ${{ matrix.runner }}
|
runs-on: ${{ matrix.runner }}
|
||||||
container:
|
container:
|
||||||
image: python:${{ matrix.python }}-bookworm
|
image: python:${{ matrix.python }}-bookworm
|
||||||
|
|
@ -26,36 +26,13 @@ jobs:
|
||||||
.
|
.
|
||||||
|
|
||||||
- name: Install build tools
|
- name: Install build tools
|
||||||
run: pip install build Cython
|
run: pip install build Cython twine
|
||||||
|
|
||||||
- name: Build wheel
|
- name: Build wheel
|
||||||
run: python -m build --wheel
|
run: python -m build --wheel
|
||||||
|
|
||||||
- name: Upload wheel artifact
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: wheel-${{ matrix.runner }}-py${{ matrix.python }}
|
|
||||||
path: dist/*.whl
|
|
||||||
|
|
||||||
publish:
|
|
||||||
name: Publish to PyPI
|
|
||||||
needs: build
|
|
||||||
runs-on: docker-amd64
|
|
||||||
container:
|
|
||||||
image: python:3.12-bookworm
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Download all wheels
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
path: dist/
|
|
||||||
merge-multiple: true
|
|
||||||
|
|
||||||
- name: Install twine
|
|
||||||
run: pip install twine
|
|
||||||
|
|
||||||
- name: Publish to PyPI
|
- name: Publish to PyPI
|
||||||
env:
|
env:
|
||||||
TWINE_USERNAME: __token__
|
TWINE_USERNAME: __token__
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
run: twine upload dist/**/*.whl
|
run: twine upload dist/*.whl
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue