Browse Source

fix: wercker

pull/235/head
Nicolas Giard 7 years ago
committed by GitHub
parent
commit
43195b52c0
1 changed files with 2 additions and 3 deletions
  1. 5
      wercker.yml

5
wercker.yml

@ -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`
chmod +x ./tools/semver_next.sh
SEMVER_NEXT=`./tools/semver_next.sh -p $SEMVER_LAST`
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"}'`
- 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

Loading…
Cancel
Save