Skip to content

Commit

Permalink
ci: add skip-publish label to skip publish on PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
mkb79 committed Sep 26, 2023
1 parent 0aaf27c commit 42cb974
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@
- name: skip-stale
description: Skip issue or pull request to be marked as stale
color: 964B50
- name: skip-publish
description: Skip a pull request to be published on PyPI or TestPyPI
color: 964BBF
- name: wontfix
description: This will not be worked on
color: ffffff
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pypi-publish:
if: "! contains(github.event.pull_request.labels.*.name, 'skip-publish')"
needs: release
environment:
name: publish
Expand Down

0 comments on commit 42cb974

Please sign in to comment.