mirror of
https://github.com/array-in-a-matrix/public-apis.git
synced 2025-04-02 11:11:50 -04:00
move deploy logic into main script
This commit is contained in:
parent
c16374a3f3
commit
f5b506165e
2 changed files with 7 additions and 4 deletions
|
@ -9,7 +9,4 @@ before_script:
|
|||
- cd build
|
||||
script:
|
||||
- ./main.sh
|
||||
after_success:
|
||||
- ./build.sh
|
||||
- ./deploy.sh
|
||||
|
||||
|
||||
|
|
|
@ -25,6 +25,12 @@ if [[ $? != 0 ]]; then
|
|||
exit 1
|
||||
else
|
||||
echo "format validation passed!"
|
||||
build.sh && deploy.sh
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "JSON build and deploy failed!"
|
||||
else
|
||||
echo "JSON build and deploy success!"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "running link validation..."
|
||||
|
|
Loading…
Add table
Reference in a new issue