Skip to content

Commit 09122e7

Browse files
test pip publish
1 parent 8114b9d commit 09122e7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/packing.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,10 @@ jobs:
172172
kill $(cat tarantool.pid) || true
173173
174174
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)
176179

177180
needs:
178181
- run_tests_pip_package_linux
@@ -204,8 +207,8 @@ jobs:
204207
- name: Publish artifacts
205208
run: twine upload -r $PYPI_REPO -u __token__ -p $PYPI_TOKEN pip_dist/*
206209
env:
207-
PYPI_REPO: pypi
208-
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
210+
PYPI_REPO: testpypi
211+
PYPI_TOKEN: ${{ secrets.TEST_PYPI_TOKEN }}
209212

210213
pack_rpm:
211214
# We want to run on external PRs, but not on our own internal

0 commit comments

Comments
 (0)