Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 1a61db8e authored by hhakim's avatar hhakim
Browse files

Automatize PYPI release on push-tag (only if whl pkg tests succeeded).

parent ec13288a
No related branches found
No related tags found
No related merge requests found
Pipeline #833983 skipped
...@@ -13,6 +13,7 @@ stages: ...@@ -13,6 +13,7 @@ stages:
- test - test
- pkg - pkg
- pkg_test - pkg_test
- pkg_pub
ctest: ctest:
<<: *ctest_script <<: *ctest_script
...@@ -543,3 +544,28 @@ test_win_purepy_pkg: ...@@ -543,3 +544,28 @@ test_win_purepy_pkg:
- tags - tags
tags: tags:
- win10 - win10
pypi_pub:
stage: pkg_pub
script:
- python3 -m pip install --user twine
- cd build/wrapper/python/dist/
- find
- NUX_WHL=$(ls *linux*x86_64.whl)
- mv $NUX_WHL ${NUX_WHL%-*}-manylinux1_x86_64.whl # proper format for pypi (just linux is not accepted)
- TOKEN=$(echo $PYPI_TOKEN | base64 -d)
- echo -e "__token__\n$TOKEN" | python3 -m twine upload *.whl
needs:
- job: pkg_macos_purepy_release
artifacts: true
- job: pkg_linux_purepy_release
artifacts: true
- job: pkg_win_purepy_release
artifacts: true
- job: test_nux_purepy_release
- job: test_win_purepy_pkg
- job: test_macos_purepy_release
only:
- tags
tags:
- linux
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment