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 $