Skip to content

Commit

Permalink
Ensure that quality jobs only run on master branch, and also release …
Browse files Browse the repository at this point in the history
…the closure
  • Loading branch information
CMCDragonkai committed Nov 21, 2021
1 parent 3f80ef3 commit c393b7d
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ application run:
tail -1 \
)"
- $build_application/bin/typescript-demo-lib
only:
- master

docker run:
stage: quality
Expand All @@ -100,6 +102,8 @@ docker run:
script:
- image="$(docker load --input ./builds/*docker* | cut -d' ' -f3)"
- docker run "$image"
only:
- master

linux run:
stage: quality
Expand All @@ -108,6 +112,8 @@ linux run:
- nix
script:
- for f in ./builds/*-linux-*; do "$f"; done
only:
- master

windows run:
stage: quality
Expand All @@ -117,6 +123,8 @@ windows run:
- Get-ChildItem -File ./builds/*-win32-* | ForEach {& $_.FullName}
tags:
- windows
only:
- master

# macos is disabled until this repo has access
# macos run:
Expand All @@ -126,6 +134,8 @@ windows run:
# - nix
# script:
# - for f in ./builds/*-macos-*; do "$f"; done
# only:
# - master
# tags:
# - shared-macos-amd64

Expand All @@ -139,12 +149,15 @@ packages:
nix-shell -I nixpkgs=./pkgs.nix --packages git gitAndTools.gh --run '
commit="$(git rev-parse --short HEAD)";
gh release \
create "$commit" builds/*-linux-* builds/*-win32-* builds/*-macos-* \
create "$commit" \
builds/*.closure.gz \
builds/*-linux-* \
builds/*-win32-* \o
builds/*-macos-* \
--title "Build-$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
--prerelease \
--notes "" \
--repo MatrixAI/TypeScript-Demo-Lib;
'
only:
- master

0 comments on commit c393b7d

Please sign in to comment.