Reinstate deploys (#56)

This commit is contained in:
Aarni Koskela
2019-10-31 10:59:29 +02:00
committed by Riku Rouvila
parent dcf26deb0f
commit 461a79ac4d
2 changed files with 14 additions and 14 deletions

View File

@@ -7,16 +7,16 @@ install:
test:
- npm run lint
- npm run build
#deploy:
# local_dir: public
# provider: pages
# fqdn: koodiklinikka.fi
# skip_cleanup: true
# github_token: "$GITHUB_TOKEN"
# repo: koodiklinikka/koodiklinikka.github.io
# target_branch: master
# on:
# branch: master
#after_success:
# - chmod ugo+x ./deploy-surge.sh
# - "./deploy-surge.sh"
deploy:
local_dir: out
provider: pages
fqdn: koodiklinikka.fi
skip_cleanup: true
github_token: "$GITHUB_TOKEN"
repo: koodiklinikka/koodiklinikka.github.io
target_branch: master
on:
branch: master
after_success:
- chmod ugo+x ./deploy-surge.sh
- "./deploy-surge.sh"

View File

@@ -3,7 +3,7 @@
REPO_SLUG_ARRAY=(${TRAVIS_REPO_SLUG//\// })
REPO_OWNER=${REPO_SLUG_ARRAY[0]}
REPO_NAME=${REPO_SLUG_ARRAY[1]}
DEPLOY_PATH=./public
DEPLOY_PATH=./out
DEPLOY_SUBDOMAIN_UNFORMATTED_LIST=()
if [ "$TRAVIS_PULL_REQUEST" != "false" ]