forked from weseek/crowi-plus-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
37 lines (30 loc) · 837 Bytes
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
box: node:6
release:
steps:
- script:
name: bump version
code: |
sh ./bin/bump-version.sh
- script:
name: git commit
code: |
sh ./bin/init-git.sh
git commit -am ":+1: version"
# push HEAD to $WERCKER_GIT_BRANCH
- script:
name: push to github
code: |
git push -u origin HEAD:$WERCKER_GIT_BRANCH
TARGET_COMMITISH=`git rev-parse HEAD`
# create github release on HEAD
- github-create-release:
token: $GITHUB_TOKEN
tag: v$RELEASE_VERSION
target-commitish: $TARGET_COMMITISH
after-steps:
- install-packages:
packages: ruby
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL
notify_on: "passed"
passed_message: ":anchor: crowi-plus v$RELEASE_VERSION has been released!"