diff --git a/Makefile b/Makefile index c2959c043..044f53227 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,7 @@ RITCHIE_ENV=$(shell VERSION=$(VERSION) ./.circleci/scripts/ritchie_env.sh) COMMONS_REPO_URL=https://commons-repo.ritchiecli.io/tree/tree.json IS_RELEASE=$(shell echo $(VERSION) | egrep "^[0-9.]+-beta.[0-9]+") IS_BETA=$(shell echo $(VERSION) | egrep "*.pre.*") +IS_QA=$(shell echo $(VERSION) | egrep "*qa.*") IS_NIGHTLY=$(shell echo $(VERSION) | egrep "*.nightly.*") GONNA_RELEASE=$(shell ./.circleci/scripts/gonna_release.sh) NEXT_VERSION=$(shell ./.circleci/scripts/next_version.sh) @@ -71,6 +72,10 @@ ifneq "$(IS_RELEASE)" "" echo -n "$(RELEASE_VERSION)" > stable.txt aws s3 sync . s3://$(BUCKET)/ --exclude "*" --include "stable.txt" endif +ifneq "$(IS_QA)" "" + echo -n "$(RELEASE_VERSION)" > stable.txt + aws s3 sync . s3://$(BUCKET)/ --exclude "*" --include "stable.txt" +endif else echo "NOT GONNA PUBLISH" endif @@ -105,6 +110,10 @@ ifneq "$(IS_RELEASE)" "" echo -n "$(RELEASE_VERSION)" > stable.txt aws s3 sync . s3://$(BUCKET)/ --exclude "*" --include "stable.txt" endif +ifneq "$(IS_QA)" "" + echo -n "$(RELEASE_VERSION)" > stable.txt + aws s3 sync . s3://$(BUCKET)/ --exclude "*" --include "stable.txt" +endif else echo "NOT GONNA PUBLISH" endif