File tree Expand file tree Collapse file tree 4 files changed +22
-3
lines changed Expand file tree Collapse file tree 4 files changed +22
-3
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 \
@@ -22,7 +24,14 @@ RUN apt-get update && \
22
24
else \
23
25
curl https://bootstrap.pypa.io/get-pip.py | python${PYTHON_VERSION}; \
24
26
fi && \
25
- pip install --upgrade pip
27
+ pip install --upgrade pip && \
28
+ curl -fSL -o ghr.tar.gz "https://github.com/tcnksm/ghr/releases/download/v${GHR_VERSION}/ghr_v${GHR_VERSION}_linux_amd64.tar.gz" && \
29
+ tar -xvzf ghr.tar.gz && \
30
+ mv ghr_v${GHR_VERSION}_linux_amd64/ghr /usr/local/bin && \
31
+ chown root:root /usr/local/bin/ghr && \
32
+ rm -r \
33
+ ghr.tar.gz \
34
+ ghr_v${GHR_VERSION}_linux_amd64
26
35
27
36
RUN set -eux; \
28
37
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