From 454d774ccfc893ce9681ac316bff0526ff67716f Mon Sep 17 00:00:00 2001 From: jem Date: Wed, 10 Feb 2021 14:36:04 +0100 Subject: [PATCH] finally condition should work --- .gitlab-ci.yml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ef4dc88..ce499aa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -35,7 +35,7 @@ package: upload-prerelease: stage: upload rules: - - if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG == ""' + - if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG == null' before_script: - echo _auth=$NPM_PUBLSH_KEY >> .npmrc - echo email=$NPM_PUBLSH_MAIL >> .npmrc @@ -54,7 +54,7 @@ upload-prerelease: upload-release: stage: upload rules: - - if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG != ""' + - if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG != null' before_script: - echo _auth=$NPM_PUBLSH_KEY >> .npmrc - echo email=$NPM_PUBLSH_MAIL >> .npmrc @@ -68,17 +68,3 @@ upload-release: - 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 - -test-prerelease: - stage: test - rules: - - if: '$CI_COMMIT_TAG == null' - script: - - echo $CI_COMMIT_TAG - -test-release: - stage: test - rules: - - if: '$CI_COMMIT_TAG != null' - script: - - echo $