File tree 4 files changed +24
-4
lines changed
4 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ build: &build
32
32
33
33
deploy : &deploy
34
34
docker :
35
- - image : tsub/ghr :latest
35
+ - image : broooooklyn/rust-python :latest
36
36
working_directory : /mnt/crate
37
37
steps :
38
38
- attach_workspace :
@@ -43,7 +43,8 @@ deploy: &deploy
43
43
if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
44
44
then
45
45
export GIT_TAG="$(git describe --tags $(git rev-list --tags --max-count=1))"; \
46
- ghr -u "${CIRCLE_PROJECT_USERNAME}" -r "${CIRCLE_PROJECT_REPONAME}" "${GIT_TAG}" build/lib/py_sourcemap/*.so
46
+ ghr -u "${CIRCLE_PROJECT_USERNAME}" -r "${CIRCLE_PROJECT_REPONAME}" "${GIT_TAG}" build/lib/py_sourcemap/*.so && \
47
+ python upload-ali-oss.py
47
48
else
48
49
echo "Not a release, skipping publish"
49
50
fi
Original file line number Diff line number Diff line change @@ -36,3 +36,9 @@ deploy:
36
36
skip_cleanup : true
37
37
on :
38
38
tags : true
39
+
40
+ deploy :
41
+ provider : script
42
+ script : python upload-ali-oss.py
43
+ on :
44
+ tags : true
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ FROM ubuntu:18.04
2
2
3
3
ARG PYTHON_VERSION=3.6
4
4
5
+ ENV GHR_VERSION="0.9.0"
6
+
5
7
ENV RUSTUP_HOME=/usr/local/rustup \
6
8
CARGO_HOME=/usr/local/cargo \
7
9
PATH=/usr/local/cargo/bin:$PATH \
@@ -18,11 +20,19 @@ RUN apt-get update && \
18
20
if [ $PYTHON_VERSION = '3.6' ]; \
19
21
then \
20
22
apt-get install python3-pip -y --no-install-recommends && \
21
- ln -sf /usr/bin/pip3 /usr/bin/pip; \
23
+ ln -sf /usr/bin/pip3 /usr/bin/pip && \
24
+ pip install setuptools; \
22
25
else \
23
26
curl https://bootstrap.pypa.io/get-pip.py | python${PYTHON_VERSION}; \
24
27
fi && \
25
- pip install --upgrade pip
28
+ pip install --upgrade pip && \
29
+ curl -fSL -o ghr.tar.gz "https://github.com/tcnksm/ghr/releases/download/v${GHR_VERSION}/ghr_v${GHR_VERSION}_linux_amd64.tar.gz" && \
30
+ tar -xvzf ghr.tar.gz && \
31
+ mv ghr_v${GHR_VERSION}_linux_amd64/ghr /usr/local/bin && \
32
+ chown root:root /usr/local/bin/ghr && \
33
+ rm -r \
34
+ ghr.tar.gz \
35
+ ghr_v${GHR_VERSION}_linux_amd64
26
36
27
37
RUN set -eux; \
28
38
dpkgArch="$(dpkg --print-architecture)" ; \
Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ artifacts:
74
74
- path : build\lib\py_sourcemap\*.pyd
75
75
name : Binary
76
76
77
+ before_deploy :
78
+ - " %PYTHON%\\ python.exe upload-ali-oss.py"
79
+
77
80
deploy :
78
81
provider : GitHub
79
82
description : $(APPVEYOR_REPO_TAG_NAME)
You can’t perform that action at this time.
0 commit comments