Skip to content

Commit c393b7d

Browse files
committed
Ensure that quality jobs only run on master branch, and also release the closure
1 parent 3f80ef3 commit c393b7d

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.gitlab-ci.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ application run:
8585
tail -1 \
8686
)"
8787
- $build_application/bin/typescript-demo-lib
88+
only:
89+
- master
8890

8991
docker run:
9092
stage: quality
@@ -100,6 +102,8 @@ docker run:
100102
script:
101103
- image="$(docker load --input ./builds/*docker* | cut -d' ' -f3)"
102104
- docker run "$image"
105+
only:
106+
- master
103107

104108
linux run:
105109
stage: quality
@@ -108,6 +112,8 @@ linux run:
108112
- nix
109113
script:
110114
- for f in ./builds/*-linux-*; do "$f"; done
115+
only:
116+
- master
111117

112118
windows run:
113119
stage: quality
@@ -117,6 +123,8 @@ windows run:
117123
- Get-ChildItem -File ./builds/*-win32-* | ForEach {& $_.FullName}
118124
tags:
119125
- windows
126+
only:
127+
- master
120128

121129
# macos is disabled until this repo has access
122130
# macos run:
@@ -126,6 +134,8 @@ windows run:
126134
# - nix
127135
# script:
128136
# - for f in ./builds/*-macos-*; do "$f"; done
137+
# only:
138+
# - master
129139
# tags:
130140
# - shared-macos-amd64
131141

@@ -139,12 +149,15 @@ packages:
139149
nix-shell -I nixpkgs=./pkgs.nix --packages git gitAndTools.gh --run '
140150
commit="$(git rev-parse --short HEAD)";
141151
gh release \
142-
create "$commit" builds/*-linux-* builds/*-win32-* builds/*-macos-* \
152+
create "$commit" \
153+
builds/*.closure.gz \
154+
builds/*-linux-* \
155+
builds/*-win32-* \o
156+
builds/*-macos-* \
143157
--title "Build-$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
144158
--prerelease \
145159
--notes "" \
146160
--repo MatrixAI/TypeScript-Demo-Lib;
147161
'
148162
only:
149163
- master
150-

0 commit comments

Comments
 (0)