Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 25 additions & 25 deletions .github/workflows/release-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: release-deploy
on:
release:
types: [ published ]
# push:
# branches: [ main ]
# pull_request:
push:
branches: [ main ]
pull_request:

jobs:
build-sdist:
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
run: |
python -m pip install -U pip
python -m pip install -U setuptools-rust
python -m pip install cibuildwheel==2.16.2
python -m pip install cibuildwheel>=2.23

- name: Build wheels
env:
Expand All @@ -167,8 +167,8 @@ jobs:
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.manylinux_image }}
CIBW_BUILD_VERBOSITY: 1
CIBW_BEFORE_ALL: |
curl -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y && rustup target add i686-pc-windows-msvc && rustup target add aarch64-apple-darwin
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
curl -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y && rustup target add i686-pc-windows-msvc && rustup target add aarch64-apple-darwin && rustup target add x86_64-apple-darwin
CIBW_ENVIRONMENT: PATH="$PATH:$HOME/.cargo/bin" MACOSX_DEPLOYMENT_TARGET='10.12'
run: |
python --version
python -m cibuildwheel --output-dir dist
Expand Down Expand Up @@ -233,22 +233,22 @@ jobs:
# The pypi upload fails with non-linux containers, so grab the uploaded
# artifacts and run using those
# See: https://github.com/pypa/gh-action-pypi-publish/discussions/15
deploy:
name: Upload wheels to PyPI
needs: [ test-package ]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/pylibjpeg-rle/
permissions:
id-token: write

steps:
- name: Download the wheels
uses: actions/download-artifact@v4
with:
path: dist/
merge-multiple: true

- name: Publish package to PyPi
uses: pypa/gh-action-pypi-publish@release/v1
# deploy:
# name: Upload wheels to PyPI
# needs: [ test-package ]
# runs-on: ubuntu-latest
# environment:
# name: pypi
# url: https://pypi.org/project/pylibjpeg-rle/
# permissions:
# id-token: write
#
# steps:
# - name: Download the wheels
# uses: actions/download-artifact@v4
# with:
# path: dist/
# merge-multiple: true
#
# - name: Publish package to PyPi
# uses: pypa/gh-action-pypi-publish@release/v1
Loading