fix: wercker

This commit is contained in:
Nicolas Giard 2017-08-29 21:11:31 -04:00 committed by GitHub
parent 73c4a03f54
commit 43195b52c0

View File

@ -78,13 +78,12 @@ deploy-github:
code: | code: |
tar -chzf wiki-js.tar.gz assets server config.sample.yml package.json wiki.js LICENSE tar -chzf wiki-js.tar.gz assets server config.sample.yml package.json wiki.js LICENSE
tar -chzf node_modules.tar.gz node_modules tar -chzf node_modules.tar.gz node_modules
SEMVER_LAST=`npm show wiki.js version` SEMVER_NEXT=`curl --request POST --url http://beta.requarks.io/api/version/increment --header 'authorization: $WIKIJSORG_TOKEN' --header 'cache-control: no-cache' --header 'content-type: application/json' --data '{"channel": "stable"}'`
chmod +x ./tools/semver_next.sh
SEMVER_NEXT=`./tools/semver_next.sh -p $SEMVER_LAST`
- github-create-release: - github-create-release:
token: $GITHUB_TOKEN token: $GITHUB_TOKEN
tag: "v${SEMVER_NEXT}" tag: "v${SEMVER_NEXT}"
prerelease: true prerelease: true
title: "$SEMVER_NEXT Release"
- github-upload-asset: - github-upload-asset:
token: $GITHUB_TOKEN token: $GITHUB_TOKEN
file: wiki-js.tar.gz file: wiki-js.tar.gz