finally condition should work

master
jem 3 years ago
parent ed09f9d7a4
commit 454d774ccf

@ -35,7 +35,7 @@ package:
upload-prerelease: upload-prerelease:
stage: upload stage: upload
rules: rules:
- if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG == ""' - if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG == null'
before_script: before_script:
- echo _auth=$NPM_PUBLSH_KEY >> .npmrc - echo _auth=$NPM_PUBLSH_KEY >> .npmrc
- echo email=$NPM_PUBLSH_MAIL >> .npmrc - echo email=$NPM_PUBLSH_MAIL >> .npmrc
@ -54,7 +54,7 @@ upload-prerelease:
upload-release: upload-release:
stage: upload stage: upload
rules: rules:
- if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG != ""' - if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG != null'
before_script: before_script:
- echo _auth=$NPM_PUBLSH_KEY >> .npmrc - echo _auth=$NPM_PUBLSH_KEY >> .npmrc
- echo email=$NPM_PUBLSH_MAIL >> .npmrc - echo email=$NPM_PUBLSH_MAIL >> .npmrc
@ -68,17 +68,3 @@ upload-release:
- cp README.md target/npm-build/mastodon_bot/ - cp README.md target/npm-build/mastodon_bot/
- npm version --no-git-tag-version $CI_COMMIT_TAG - npm version --no-git-tag-version $CI_COMMIT_TAG
- npm publish ./target/npm-build/mastodon_bot --access public - 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 $