Skip to content

Commit

Permalink
set build and publish jobs to run only on tag push
Browse files Browse the repository at this point in the history
Signed-off-by: Caleb Grant <[email protected]>
  • Loading branch information
geocoug committed Dec 16, 2024
1 parent 3666389 commit 2031a13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
push:
branches:
- main
tags:
- '**'
workflow_dispatch:

env:
Expand Down Expand Up @@ -71,6 +73,7 @@ jobs:
name: Build distribution 📦
runs-on: ubuntu-latest
needs: [tests]
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand Down

0 comments on commit 2031a13

Please sign in to comment.