File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ publish:tag:
101
101
script :
102
102
- apk add --update --no-cache curl
103
103
- npm install -g semver
104
- - curl -qsX POST -H "Private-Token:${GITLAB_API_TOKEN}" -F ref="${CI_COMMIT_REF_NAME }" -F tag_name="$(cat "${VERSION_FILE}")" "https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/repository/tags" > /dev/null 2>&1
104
+ - curl -qsX POST -H "Private-Token:${GITLAB_API_TOKEN}" -F ref="${CI_COMMIT_SHA }" -F tag_name="$(cat "${VERSION_FILE}")" "https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/repository/tags" > /dev/null 2>&1
105
105
only :
106
106
- master
107
107
Original file line number Diff line number Diff line change 1
1
if : tag IS present AND tag != latest
2
2
3
- os :
4
- - linux
5
- - osx
6
- - windows
7
-
8
3
git :
9
4
depth : false
10
5
@@ -26,10 +21,18 @@ cache: cargo
26
21
jobs :
27
22
include :
28
23
- stage : build
24
+ os :
25
+ - linux
26
+ - osx
27
+ - windows
29
28
before_script : sed -i "s/version = \"0.0.0\"/version = \"$(VERSION=${TRAVIS_TAG} ./version.sh tags)\"/" Cargo.toml
30
29
script :
31
30
- cargo build --verbose --release
32
31
- stage : deploy
32
+ os :
33
+ - linux
34
+ - osx
35
+ - windows
33
36
deploy :
34
37
provider : releases
35
38
api_key :
39
42
on :
40
43
tags : true
41
44
- stage : deploy
45
+ os :
46
+ - linux
47
+ - osx
48
+ - windows
42
49
env :
43
50
- TRAVIS_TAG=latest
44
51
deploy :
You can’t perform that action at this time.
0 commit comments