From 3d25c6881d42a2de78fdc8beaaac08c197b04dcd Mon Sep 17 00:00:00 2001 From: Robert Taylor Date: Tue, 3 Jan 2023 17:21:04 +0000 Subject: [PATCH] Upload wheels in CI --- .gitlab-ci.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4ecdc953..a09dbc69 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,11 +17,28 @@ linux: parallel: matrix: - CIBW_BUILD: [cp38-manylinux*, cp39-manylinux*, cp310-manylinux*, cp311-manylinux*] - CIBW_ARCHS_LINUX: [auto64, aarch64] + CIBW_ARCHS_LINUX: [auto64] artifacts: paths: - wheelhouse/ +dist: + image: python:3.8 + needs: + - job: linux + artifacts: true + except: + - merge_requests + variables: + TWINE_PASSWORD: '${CI_JOB_TOKEN}' + TWINE_USERNAME: 'gitlab-ci-token' + TWINE_REPOSITORY_URL: 'https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/pypi' + script: + - python -m pip install --upgrade build twine + - python -m twine check --strict wheelhouse/* + - python -m twine upload --verbose wheelhouse/* + + #windows: # image: mcr.microsoft.com/windows/servercore:1809 # before_script: