forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupload.yml
90 lines (77 loc) · 2.32 KB
/
upload.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Steps for uploading artifacts
.rsync_upload:
image: "fedora:37"
stage: upload
tags:
- docker
- linux-x86_64
- build
script:
- ls build/
- dnf install -y --setopt=install_weak_deps=False rsync openssh-clients
- chmod 400 $RSYNC_KEY_PATH
- ssh-keygen -y -f $RSYNC_KEY_PATH > $RSYNC_KEY_PATH.pub
- rsync -tv $RSYNC_DELETE_ARG --recursive -e "ssh -i $RSYNC_KEY_PATH -o StrictHostKeyChecking=no" $RSYNC_SOURCE [email protected]:$RSYNC_DESTINATION/
.rsync_upload_docs:
extends: .rsync_upload
environment:
name: rsync-upload-docs
variables:
RSYNC_KEY_PATH: $RSYNC_DOCS_KEY
RSYNC_DELETE_ARG: --delete
interruptible: false
.rsync_upload_wheel_sdk:
extends: .rsync_upload
environment:
name: rsync-upload-wheel-sdk
variables:
RSYNC_KEY_PATH: $RSYNC_WHEEL_SDK_KEY
.rsync_upload_release_artifacts:
extends: .rsync_upload
environment:
name: rsync-upload-release-artifacts
before_script:
- . .gitlab/ci/prepare-release-env.sh
variables:
RSYNC_KEY_PATH: $RSYNC_RELEASE_KEY
.pypi_upload:
image: "fedora:37"
stage: upload
tags:
- docker
- linux-x86_64
- build
environment:
name: pypi-upload
script:
- cd build/
- ls dist
- dnf install -y --setopt=install_weak_deps=False twine
- twine upload -u __token__ -p $PYPI_UPLOAD_TOKEN dist/*
.pypi_vtk_upload:
image: "fedora:37"
stage: upload
tags:
- docker
- linux-x86_64
- build
script:
- cd build/
- ls dist
- dnf install -y --setopt=install_weak_deps=False twine
- twine upload -u gitlab-ci-token -p $CI_JOB_TOKEN --repository-url https://gitlab.kitware.com/api/v4/projects/$CI_PROJECT_ID/packages/pypi dist/*
.generic_vtk_wasm_emscripten_linux_upload:
stage: upload
tags:
- docker
- linux-x86_64
- build
script:
- .gitlab/ci/cmake.sh latest
- export PATH=$PWD/.gitlab/cmake/bin:$PATH
- cmake --version
- cmake -P .gitlab/ci/download_node.cmake
- export PATH=$PWD/.gitlab/node/bin:$PATH
- node --version
- .gitlab/ci/upload_webassembly_archive.sh $WASM_ARCHITECTURE
interruptible: true