Skip to content

Commit db06eeb

Browse files
authored
Merge pull request #67 from SINTEF/copilot/initiate-python-distribution-publishing
Fix: Trigger PyPI publishing on tag push instead of release events
2 parents 53added + 8c1cc62 commit db06eeb

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

.github/workflows/publish_MachSysS.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
name: Publish Python 🐍 distribution 📦 to PyPI for MachSysS
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
tags:
6+
- 'MachSysS-v*'
67

78
jobs:
89
build:
910
name: Build distribution 📦
1011
runs-on: ubuntu-latest
11-
# Only build and publish if the release tag is for MachSysS
12-
if: startsWith(github.event.release.tag_name, 'machinery-system-structure-v')
1312

1413
steps:
1514
- uses: actions/checkout@v4

.github/workflows/publish_RunFeemsSim.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
name: Publish Python 🐍 distribution 📦 to PyPI for RunFeemsSim
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
tags:
6+
- 'RunFeemsSim-v*'
67

78
jobs:
89
build:
910
name: Build distribution 📦
1011
runs-on: ubuntu-latest
11-
# Only build and publish if the release tag is for RunFEEMSSim
12-
if: startsWith(github.event.release.tag_name, 'RunFEEMSSim-v')
1312

1413
steps:
1514
- uses: actions/checkout@v4

.github/workflows/publish_feems.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
name: Publish Python 🐍 distribution 📦 to PyPI for FEEMS
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
tags:
6+
- 'feems-v*'
67

78
jobs:
89
build:
910
name: Build distribution 📦
1011
runs-on: ubuntu-latest
11-
# Only build and publish if the release tag is for feems
12-
if: startsWith(github.event.release.tag_name, 'feems-v')
1312

1413
steps:
1514
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)