File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,10 @@ jobs:
172
172
kill $(cat tarantool.pid) || true
173
173
174
174
publish_pip :
175
- if : startsWith(github.ref, 'refs/tags')
175
+ # if: startsWith(github.ref, 'refs/tags')
176
+ if : (github.event_name == 'push') ||
177
+ (github.event_name == 'pull_request' &&
178
+ github.event.pull_request.head.repo.full_name != github.repository)
176
179
177
180
needs :
178
181
- run_tests_pip_package_linux
@@ -204,8 +207,8 @@ jobs:
204
207
- name : Publish artifacts
205
208
run : twine upload -r $PYPI_REPO -u __token__ -p $PYPI_TOKEN pip_dist/*
206
209
env :
207
- PYPI_REPO : pypi
208
- PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
210
+ PYPI_REPO : testpypi
211
+ PYPI_TOKEN : ${{ secrets.TEST_PYPI_TOKEN }}
209
212
210
213
pack_rpm :
211
214
# We want to run on external PRs, but not on our own internal
You can’t perform that action at this time.
0 commit comments