mirror of
https://github.com/FranP-code/public-apis.git
synced 2025-10-13 00:03:04 +00:00
move deploy logic into main script
This commit is contained in:
@@ -9,7 +9,4 @@ before_script:
|
|||||||
- cd build
|
- cd build
|
||||||
script:
|
script:
|
||||||
- ./main.sh
|
- ./main.sh
|
||||||
after_success:
|
|
||||||
- ./build.sh
|
|
||||||
- ./deploy.sh
|
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,12 @@ if [[ $? != 0 ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "format validation passed!"
|
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
|
fi
|
||||||
|
|
||||||
echo "running link validation..."
|
echo "running link validation..."
|
||||||
|
|||||||
Reference in New Issue
Block a user