Skip to content

Commit

Permalink
Add workflow trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
dan1elt0m committed Sep 17, 2024
1 parent 2a7a7ea commit bf019a7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Publish Python 🐍 distribution 📦 to PyPI

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch: # Only manual trigger and only for the main branch
branches:
- main

jobs:
build:
Expand Down Expand Up @@ -33,7 +33,6 @@ jobs:
publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
runs-on: ubuntu-latest
Expand Down

0 comments on commit bf019a7

Please sign in to comment.