Skip to content

Commit 7c9529f

Browse files
authored
Merge pull request #802 from OpenSimulationInterface/build/python-pypi-releases
Add full release publication of python packages
2 parents 5ac10b3 + c07e102 commit 7c9529f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/protobuf.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
if-no-files-found: error
132132

133133
- name: Upload Python Distribution
134-
if: ${{ github.event_name == 'pull_request' || ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) }}
134+
if: ${{ github.event_name == 'pull_request' || ( github.event_name == 'push' && ( github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') ) ) }}
135135
uses: actions/upload-artifact@v4
136136
with:
137137
name: python-dist
@@ -235,7 +235,7 @@ jobs:
235235

236236
needs: [build-proto2-linux64, build-proto3-linux64]
237237

238-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
238+
if: ${{ github.event_name == 'push' && ( github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') ) }}
239239

240240
steps:
241241
- name: Download Distribution
@@ -248,3 +248,7 @@ jobs:
248248
uses: pypa/gh-action-pypi-publish@release/v1
249249
with:
250250
repository-url: https://test.pypi.org/legacy/
251+
252+
- name: Publish Full Release on PyPI
253+
if: startsWith(github.ref, 'refs/tags/v')
254+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)