mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 05:37:21 -05:00
GHA: Add check for main branch for publish to PyPi
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user