Skip to content

Commit 5b014a6

Browse files
committed
Merge pull request nodegit#668 from nodegit/autodeploy
Autodeploy
2 parents f0140f9 + a7bfe38 commit 5b014a6

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ git:
4545
branches:
4646
only:
4747
- master
48-
- v0.3
48+
- /^v\d+\.\d+\.\d+$/
4949
os:
5050
- linux
5151
- osx
@@ -55,6 +55,13 @@ script:
5555
else
5656
npm test;
5757
fi
58+
after_success:
59+
- if [ -n "$TRAVIS_TAG" ]; then
60+
npm install -g node-pre-gyp
61+
npm install -g aws-sdk
62+
node-pre-gyp package
63+
node-pre-gyp publish
64+
fi
5865
notifications:
5966
slack:
6067
secure: KglNSqZiid9YudCwkPFDh+sZfW5BwFlM70y67E4peHwwlbbV1sSBPHcs74ZHP/lqgEZ4hMv4N2NI58oYFD5/1a+tKIQP1TkdIMuq4j2LXheuirA2HDcydOVrsC8kRx5XFGKdVRg/uyX2dlRHcOWFhxrS6yc6IxtxYWlRTD2SmEc=

appveyor.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ test_script:
4848
- npm --version
4949
- cmd: npm test
5050

51+
on_success:
52+
- IF %APPVEYOR_REPO_TAG%==true npm install -g node-pre-gyp
53+
- IF %APPVEYOR_REPO_TAG%==true npm install -g aws-sdk
54+
- IF %APPVEYOR_REPO_TAG%==true node-pre-gyp package
55+
- IF %APPVEYOR_REPO_TAG%==true node-pre-gyp publish
56+
5157
build: off
5258

5359
branches:

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
"generateNativeCode": "node generate/scripts/generateNativeCode",
9696
"generateMissingTests": "node generate/scripts/generateMissingTests",
9797
"prepublish": "node lifecycleScripts/prepareForBuild.js",
98-
"publish": "node-pre-gyp package && node-pre-gyp publish",
9998
"install": "node lifecycleScripts/install",
10099
"installDebug": "BUILD_DEBUG=true npm install",
101100
"recompile": "pangyp configure build",

0 commit comments

Comments
 (0)