Skip to content

Commit 3d25c68

Browse files
robtaylorjpc-lip6
authored andcommitted
Upload wheels in CI
1 parent 3196196 commit 3d25c68

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.gitlab-ci.yml

+18-1
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,28 @@ linux:
1717
parallel:
1818
matrix:
1919
- CIBW_BUILD: [cp38-manylinux*, cp39-manylinux*, cp310-manylinux*, cp311-manylinux*]
20-
CIBW_ARCHS_LINUX: [auto64, aarch64]
20+
CIBW_ARCHS_LINUX: [auto64]
2121
artifacts:
2222
paths:
2323
- wheelhouse/
2424

25+
dist:
26+
image: python:3.8
27+
needs:
28+
- job: linux
29+
artifacts: true
30+
except:
31+
- merge_requests
32+
variables:
33+
TWINE_PASSWORD: '${CI_JOB_TOKEN}'
34+
TWINE_USERNAME: 'gitlab-ci-token'
35+
TWINE_REPOSITORY_URL: 'https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/pypi'
36+
script:
37+
- python -m pip install --upgrade build twine
38+
- python -m twine check --strict wheelhouse/*
39+
- python -m twine upload --verbose wheelhouse/*
40+
41+
2542
#windows:
2643
# image: mcr.microsoft.com/windows/servercore:1809
2744
# before_script:

0 commit comments

Comments
 (0)