File tree 1 file changed +25
-9
lines changed
1 file changed +25
-9
lines changed Original file line number Diff line number Diff line change 26
26
27
27
runs-on : ubuntu-22.04
28
28
29
- permissions :
30
- id-token : write
31
-
32
29
steps :
33
30
- name : Checkout OSI
34
31
uses : actions/checkout@v4
@@ -134,17 +131,12 @@ jobs:
134
131
if-no-files-found : error
135
132
136
133
- name : Upload Python Distribution
137
- if : ${{ github.event_name == 'pull_request' }}
134
+ if : ${{ github.event_name == 'pull_request' || ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) }}
138
135
uses : actions/upload-artifact@v4
139
136
with :
140
137
name : python-dist
141
138
path : dist/
142
139
143
- - name : Publish Snapshot Release on TestPyPI
144
- uses : pypa/gh-action-pypi-publish@release/v1
145
- with :
146
- repository-url : https://test.pypi.org/legacy/
147
-
148
140
- name : Deploy to gh-pages if push to master branch
149
141
if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
150
142
uses : peaceiris/actions-gh-pages@v3
@@ -232,3 +224,27 @@ jobs:
232
224
233
225
- name : Run Python Tests
234
226
run : python -m unittest discover tests
227
+
228
+ publish-python-dist :
229
+ name : Publish Python Distribution
230
+
231
+ runs-on : ubuntu-22.04
232
+
233
+ permissions :
234
+ id-token : write
235
+
236
+ needs : [build-proto2-linux64, build-proto3-linux64]
237
+
238
+ if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
239
+
240
+ steps :
241
+ - name : Download Distribution
242
+ uses : actions/download-artifact@v4
243
+ with :
244
+ name : python-dist
245
+ path : dist/
246
+
247
+ - name : Publish Snapshot Release on TestPyPI
248
+ uses : pypa/gh-action-pypi-publish@release/v1
249
+ with :
250
+ repository-url : https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments