Add automatic ci releases

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-10-27 12:49:59 +00:00
parent a4a024f654
commit 35a6304fcf

View File

@@ -21,6 +21,8 @@ test:
- yarn
script:
- yarn test
except:
- tags
build:
image: node:20
@@ -39,6 +41,8 @@ build:
expire_in: 1d
reports:
dotenv: job.env
except:
- tags
release:
image: registry.gitlab.com/gitlab-org/release-cli
@@ -49,15 +53,15 @@ release:
- job: build
artifacts: true
script:
- echo "Create Release $CI_COMMIT_REF_NAME"
- echo "Create Release $CI_COMMIT_SHA"
release:
name: "Release $CI_COMMIT_REF_NAME"
tag_name: "$CI_COMMIT_REF_NAME"
ref: "$CI_COMMIT_REF_NAME"
description: "Release $CI_COMMIT_REF_NAME"
name: "Release $CI_COMMIT_SHA"
tag_name: "release-$CI_COMMIT_SHA"
ref: "$CI_COMMIT_SHA"
description: "Release $CI_COMMIT_SHA"
assets:
links:
- name: "caldwell-59.zip"
url: "https://git.karaolidis.com/karaolidis/caldwell-59/-/jobs/$JOB_ID/artifacts/raw/caldwell-59.zip"
only:
url: "https://git.karaolidis.com/karaolidis/caldwell-59/-/jobs/$JOB_ID/artifacts/raw/dist/caldwell-59.zip"
except:
- tags