From a7b8eda5008fe3759d880ecbe77b93ab45bcc3ea Mon Sep 17 00:00:00 2001 From: Sophie Tauchert Date: Sun, 8 Jan 2023 15:15:14 +0100 Subject: [PATCH] Change built output name --- .gitlab-ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b30e878..b708d0a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,7 +5,13 @@ build: image: dock.mau.dev/maubot/maubot:latest stage: build script: - - mbc build + - | + if [ -n "$CI_COMMIT_TAG" ]; then + VERSION="$CI_COMMMIT_TAG" + else + VERSION="$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA" + fi + - mbc build -o cloud.catgirl.ntfy-$VERSION.mbp artifacts: paths: - "*.mbp"