File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ jobs:
131
131
if-no-files-found : error
132
132
133
133
- 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') ) ) }}
135
135
uses : actions/upload-artifact@v4
136
136
with :
137
137
name : python-dist
@@ -235,7 +235,7 @@ jobs:
235
235
236
236
needs : [build-proto2-linux64, build-proto3-linux64]
237
237
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') ) }}
239
239
240
240
steps :
241
241
- name : Download Distribution
@@ -248,3 +248,7 @@ jobs:
248
248
uses : pypa/gh-action-pypi-publish@release/v1
249
249
with :
250
250
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