Change built output name

This commit is contained in:
Sophie Tauchert 2023-01-08 15:15:14 +01:00
parent 8fef6f015f
commit a7b8eda500
No known key found for this signature in database
GPG key ID: 52701DE5F5F51125

View file

@ -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"