Skip to content

Commit

Permalink
GHA: Add check for main branch for publish to PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Feb 24, 2025
1 parent 85abd0c commit c944b52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ResInsightWithCache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,7 @@ jobs:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing

# If this is a tagged release
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')

if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && github.base_ref == 'refs/heads/main'
steps:
- name: Download python distribution folder
uses: actions/download-artifact@v4
Expand Down

0 comments on commit c944b52

Please sign in to comment.