Merge pull request #95 from rehandalal/ditch-ci-deploy-step
Ditch the deploy step
This commit is contained in:
Коммит
74f709b7bc
|
@ -43,15 +43,6 @@ jobs:
|
|||
# build all the things!
|
||||
- run: yarn run build
|
||||
|
||||
- deploy:
|
||||
command: |
|
||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||
./bin/deploy.sh latest
|
||||
fi
|
||||
if [ -n "${CIRCLE_TAG}" ]; then
|
||||
./bin/deploy.sh "$CIRCLE_TAG"
|
||||
fi
|
||||
|
||||
docs:
|
||||
docker:
|
||||
- image: circleci/python:3.6@sha256:a352e545fd4cee237e8639cd2bdb81a89c4b59c6f5e2d2035fa4f35d7f04af81
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -eo pipefail
|
||||
|
||||
usage() {
|
||||
echo "usage: ./bin/deploy.sh <tag|latest>"
|
||||
echo ""
|
||||
echo " latest Deploy to Dev (master push)"
|
||||
echo " \$tag Deploy to Stage (git tag)"
|
||||
echo ""
|
||||
exit 1
|
||||
}
|
||||
|
||||
[ $# -lt 1 ] && usage
|
||||
|
||||
echo "Build directory contains:"
|
||||
# Just to prove that the files are there. For now.
|
||||
ls -l build
|
||||
|
||||
echo "DEPLOY: $1 PLEASE"
|
Загрузка…
Ссылка в новой задаче