Skip to content

Commit

Permalink
Merge pull request #154 from AiursoftWeb/dev
Browse files Browse the repository at this point in the history
 move commands from .yml to publish.sh
  • Loading branch information
Anduin2017 authored Dec 11, 2018
2 parents 18965a6 + d450f1e commit 7142524
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 7 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7142524

Please sign in to comment.