Skip to content

Commit 50df641

Browse files
authored
Upload to pypi whenever a branch starting with "release/" is released (invoke-ai#4875)
## What type of PR is this? (check all applicable) - [X] Optimization - ## Have you discussed this change with the InvokeAI team? - [X] Yes - [ ] No, because: ## Have you updated all relevant documentation? - [X] Yes - [ ] No ## Description This PR changes the pypi-release workflow so that it will upload to PyPi whenever a release is initiated from the `main` branch or another branch beginning with `release/`. Previous support for v2.3 branches has been removed.
2 parents 0a929ca + 22dd64d commit 50df641

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/pypi-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: twine check dist/*
2929

3030
- name: check PyPI versions
31-
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/v2.3' || github.ref == 'refs/heads/v3.3.0post1'
31+
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')
3232
run: |
3333
pip install --upgrade requests
3434
python -c "\

0 commit comments

Comments
 (0)