diff --git a/.travis.yml b/.travis.yml index 41cf0745..57f6ef96 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,9 +16,6 @@ install: script: - npm run lint - - json="export const environment = { production: true, server: 'https://server.kahla.app' };" - - echo Writting JSON: \"$json\" - - echo $json > ./src/environments/environment.prod.ts - ./publish.sh deploy: diff --git a/publish.sh b/publish.sh index 98a73fdf..9c5646d8 100755 --- a/publish.sh +++ b/publish.sh @@ -1,5 +1,12 @@ #!/bin/bash +if [[ -z "${GH_TOKEN}" ]] +then + json="export const environment = { production: true, server: 'https://server.kahla.app' };" + echo Writting JSON: \"$json\" + echo $json > ./src/environments/environment.prod.ts +fi + rm -rf ./www/ rm -rf ./dist/ npm run prod-electron