Vmeda.Online/.github/scripts/release.sh

24 lines
519 B
Bash
Raw Permalink Normal View History

2021-05-10 14:11:01 +00:00
#!/bin/bash
source "./.github/scripts/functions.sh"
if [ -z $GIT_TOKEN ] ; then
2021-05-10 14:11:01 +00:00
print_error "Env vars not correctly defined"
exit 1
fi
print_title "Run release scripts"
2021-05-10 14:11:01 +00:00
git clone --depth 1 --single-branch --branch ionic5 https://$GIT_TOKEN@github.com/moodlemobile/apps-scripts.git ../scripts
cp ../scripts/*.sh scripts/
if [ ! -f scripts/release.sh ]; then
print_error "Release file not found"
2021-05-10 14:11:01 +00:00
exit 1
fi
print_title 'Create release tags'
./scripts/release.sh $1
2021-05-10 14:11:01 +00:00
if [ $? -ne 0 ]; then
exit 1
fi