Skip to content

Commit

Permalink
Run publish workflow on tag only
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Dec 19, 2023
1 parent 3aa1d04 commit 0370dbe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Publish Python 🐍 distribution 📦 to PyPI

on: push
on:
push:
tags:
- '*'

jobs:
build:
Expand Down Expand Up @@ -36,7 +39,7 @@ jobs:
publish-to-pypi:
name: Publish Python 🐍 distribution 📦 to PyPI
# only publish to PyPI on tag pushes
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/debug-publish-action-') != true
needs:
- build
runs-on: ubuntu-latest
Expand All @@ -53,4 +56,3 @@ jobs:
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 0370dbe

Please sign in to comment.