diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e21d81f4cb09114c0d263a9d9dbbd25b010e1dbd..1bea5fda6d9b4b82ffbc05922c4f0f3551958b13 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,33 +51,33 @@ build: - drugstone # - check:test -deploy:release: - image: alpine/git - stage: deploy - when: manual - variables: - GITHUB_TOKEN: "$DRUGSTONE_DEPLOY_KEY" - dependencies: - - build - before_script: - - APP_NAME=drugstone - - ERSION_NAME="v9.0.1" - - FILENAME="$APP_NAME-v$VERSION_NAME" - - TAG="v{VERSION_NAME} - - TAG="latest-master" - script: - - echo $APP_NAME - - echo $VERSION_NAME - - echo $FILENAME - - echo $TAG - - mv drugstone-build/* ./ - - mv styles.css drugstone.css - - git clone https://github.com/AndiMajore/drugstone-releases.git - - cd releases - - gh release delete $TAG - - gh release create -a ../$APP_NAME.* -m "Latest release of drugsTone $FILENAME -p $TAG" - tags: - - drugstone +#deploy:release: +# image: alpine/git +# stage: deploy +# when: manual +# variables: +# GITHUB_TOKEN: "$DRUGSTONE_DEPLOY_KEY" +# dependencies: +# - build +# before_script: +# - APP_NAME=drugstone +# - ERSION_NAME="v9.0.1" +# - FILENAME="$APP_NAME-v$VERSION_NAME" +# - TAG="v{VERSION_NAME} +# - TAG="latest-master" +# script: +# - echo $APP_NAME +# - echo $VERSION_NAME +# - echo $FILENAME +# - echo $TAG +# - mv drugstone-build/* ./ +# - mv styles.css drugstone.css +# - git clone https://github.com/AndiMajore/drugstone-releases.git +# - cd releases +# - gh release delete $TAG +# - gh release create -a ../$APP_NAME.* -m "Latest release of drugsTone $FILENAME -p $TAG" +# tags: +# - drugstone deploy:dev: image: docker diff --git a/README.md b/README.md index 140237d7426a04605b0ac3b81475ba387cde52f8..314f2e4118c84f430716f4ee8a784da37d972448 100644 --- a/README.md +++ b/README.md @@ -30,3 +30,12 @@ To get more help on the Angular CLI use `ng help` or go check out the [Angular C ## Create exportable js and css `npm run build:netex` + +## Create and release js and css + +`cd releases && ./release_tag.sh $VERSION $MESSAGE` +e.g. +`cd releases && ./release_tag.sh 0.9.4-beta "This release features new layouting"` + +## Delete release from repository +`cd releases && ./delete_tag.sh $VERSION`