Skip to content

Commit a4f153b

Browse files
ci
1 parent 389dd4a commit a4f153b

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/ci_energyml_utils_pull_request.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
## SPDX-License-Identifier: Apache-2.0
44
##
55
---
6-
76
name: Publish (pypiTest)
87

98
defaults:
@@ -15,13 +14,14 @@ on:
1514
branches:
1615
- main
1716
pull_request:
17+
release:
18+
types: [published]
1819

1920
jobs:
2021
build:
2122
name: Build distribution
2223
runs-on: ubuntu-latest
2324
steps:
24-
2525
- name: Checkout code
2626
uses: actions/checkout@v4
2727
with:
@@ -30,7 +30,7 @@ jobs:
3030
- name: Install poetry
3131
uses: ./.github/actions/prepare-poetry
3232
with:
33-
python-version: '3.10'
33+
python-version: "3.10"
3434

3535
- name: Build
3636
run: |
@@ -58,7 +58,6 @@ jobs:
5858
needs: [build]
5959
runs-on: ubuntu-latest
6060
steps:
61-
6261
# Retrieve the code and GIT history so that poetry-dynamic-versioning knows which version to upload
6362
- name: Checkout code
6463
uses: actions/checkout@v4
@@ -74,7 +73,7 @@ jobs:
7473
- name: Install poetry
7574
uses: ./.github/actions/prepare-poetry
7675
with:
77-
python-version: '3.10'
76+
python-version: "3.10"
7877

7978
- name: Upload to PyPI TEST
8079
run: |

0 commit comments

Comments
 (0)