From 945d47882995a1089f5003ed59c6b4e4d70ddf4e Mon Sep 17 00:00:00 2001 From: jem Date: Wed, 10 Feb 2021 14:02:22 +0100 Subject: [PATCH] expression test --- .gitlab-ci.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4c1ccff..db4d1a6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -67,4 +67,18 @@ upload-release: - cp package.json target/npm-build/mastodon_bot/ - cp README.md target/npm-build/mastodon_bot/ - npm version --no-git-tag-version $CI_COMMIT_TAG - - npm publish ./target/npm-build/mastodon_bot --access public \ No newline at end of file + - npm publish ./target/npm-build/mastodon_bot --access public + +test-prerelease: + stage: test + rules: + - if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG == ""' + script: + - echo $CI_COMMIT_TAG + +test-release: + stage: test + rules: + - if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG != ""' + script: + - echo $