Fix Python version and clean up publish workflow
Updated Python version to 3.12 and removed invalid input for python in the build step.
This commit is contained in:
15
.github/workflows/publish.yml
vendored
15
.github/workflows/publish.yml
vendored
@@ -15,13 +15,10 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
target: x86_64
|
target: x86_64
|
||||||
python: '3.12'
|
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
target: x86_64
|
target: x86_64
|
||||||
python: '3.12'
|
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
target: x86_64
|
target: x86_64
|
||||||
python: '3.12'
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -29,7 +26,7 @@ jobs:
|
|||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: '3.12'
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
@@ -40,7 +37,7 @@ jobs:
|
|||||||
uses: PyO3/maturin-action@v1
|
uses: PyO3/maturin-action@v1
|
||||||
with:
|
with:
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
python: ${{ matrix.python }}
|
# REMOVED: python (invalid input)
|
||||||
command: build
|
command: build
|
||||||
args: --release --out dist --find-interpreter
|
args: --release --out dist --find-interpreter
|
||||||
|
|
||||||
@@ -57,6 +54,10 @@ jobs:
|
|||||||
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
|
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install maturin for upload
|
||||||
|
run: |
|
||||||
|
pip install maturin
|
||||||
|
|
||||||
- name: Download ALL wheels
|
- name: Download ALL wheels
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
@@ -68,8 +69,8 @@ jobs:
|
|||||||
echo "Wheels ready:"
|
echo "Wheels ready:"
|
||||||
ls -la dist/*.whl
|
ls -la dist/*.whl
|
||||||
|
|
||||||
- name: Publish from dist/
|
- name: Publish to PyPI
|
||||||
run: |
|
run: |
|
||||||
cd dist
|
cd dist
|
||||||
ls -la *.whl # Confirm wheels here
|
|
||||||
maturin upload --token ${{ secrets.PYPI_API_TOKEN }} --skip-existing --non-interactive
|
maturin upload --token ${{ secrets.PYPI_API_TOKEN }} --skip-existing --non-interactive
|
||||||
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user