Skip to content

Commit 4a3885f

Browse files
committed
fix git command
1 parent 1718d2c commit 4a3885f

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

.travis.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ language: node_js
22
node_js:
33
- "8"
44

5-
before_install:
6-
- npm i -g npm@latest
7-
85
before_script:
96
- npm run setup
107
- npm run build
@@ -13,4 +10,11 @@ script:
1310
- npm run test
1411

1512
after_success:
16-
- ./push-build.sh
13+
- git config --global user.email "travis@travis-ci.org"
14+
- git config --global user.name "Travis CI"
15+
- git branch dist
16+
- git add -f "dist/*"
17+
- git commit -m "Travis Build: $TRAVIS_BUILD_NUMBER" -m "[skip ci]"
18+
- git remote rm origin
19+
- git remote add origin https://mauricedoepke:${GH_TOKEN}@github.com/mauricedoepke/webpack-obfuscator.git > /dev/null 2>&1
20+
- git push origin dist:master

push-build.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)