From 810f8069331c68f5f57eff3a6d32e55b1b1cbef1 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 23 Sep 2023 14:09:21 +1000 Subject: [PATCH] Only run wheels workflow for tags and wheel building changes --- .github/workflows/wheels.yml | 13 ++++++++++++- wheels/README.md | 5 ++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index cf9fd7aeee4..4381a985697 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -1,6 +1,17 @@ name: Wheels -on: [push, pull_request, workflow_dispatch] +on: + push: + paths: + - ".github/workflows/wheels*.yml" + - "wheels/*" + tags: + - "*" + pull_request: + paths: + - ".github/workflows/wheels*.yml" + - "wheels/*" + workflow_dispatch: permissions: contents: read diff --git a/wheels/README.md b/wheels/README.md index caf6cfeaf2f..dcac5d46854 100644 --- a/wheels/README.md +++ b/wheels/README.md @@ -24,9 +24,8 @@ archive. Wheels ------ -Wheels are uploaded to https://github.com/python-pillow/Pillow/releases. -Credentials for this specific repo are stored in a Travis CI secret, so the upload -won't work from another repository. +Wheels are +[GitHub Actions artifacts created for tags, relevant changes or manual builds](https://github.com/python-pillow/Pillow/actions/workflows/wheels.yml). Windows wheels are not created here. Instead, they are [GitHub Actions artifacts created on each run of the Pillow repository](https://github.com/python-pillow/Pillow/actions/workflows/test-windows.yml?query=branch%3Amain).