File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments