Skip to content
Snippets Groups Projects
Commit 54c1fbf2 authored by AndiMajore's avatar AndiMajore
Browse files

Scripts for the automatic generation, release and deletion of drugsTone.js and css versions

parent c8d61933
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
if [ -z "$1" ]
then
echo "Please enter a version"
exit
fi
VERSION=v$1
cd ../../
echo "Cloning Release Repo..."
git clone git@github.com:AndiMajore/drugstone-releases.git
echo "Deleting Release Version..."
cd drugstone-releases || echo "Error!" exit
git push --delete origin "$VERSION"
echo "Clean up..."
cd ../
rm -rf drugstone-releases
echo "Done!"
#!/bin/bash
if [ -z "$1" ]
then
echo "Please enter a version"
exit
fi
if [ -z "$2" ]
then
echo "Please enter a version message"
exit
fi
VERSION=v$1
MESSAGE=$2
echo "Building..."
cd ../
npm run build:netex
cd ../
echo "Cloning Release Repo..."
git clone git@github.com:AndiMajore/drugstone-releases.git
echo "Updating Repo..."
cp frontend/drugsTone-build/* drugstone-releases/releases/
echo "Tagging Version..."
cd drugstone-releases || echo "Error!" exit
git tag -a "$VERSION" -m "$MESSAGE"
echo "Releasing Version..."
git push origin "$VERSION"
echo "Clean up..."
cd ../
rm -rf drugstone-releases
echo "Done!"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment