forked from nightscout/share2nightscout-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
34 lines (32 loc) · 1.01 KB
/
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
box: wercker/ubuntu12.04-nodejs0.10
build:
steps:
- script:
name: "install prereqs"
code: |-
sudo apt-get update
sudo apt-get install -y zip
- script:
name: "npm install"
code: |-
pwd
npm install
git archive -o nightscout-sidecar.zip HEAD
zip -r nightscout-sidecar.zip node_modules/
zipinfo nightscout-sidecar.zip
cp nightscout-sidecar.zip $WERCKER_OUTPUT_DIR/
node -p 'require("./package.json").version' | tee $WERCKER_OUTPUT_DIR/version
deploy:
steps:
- script:
name: "debug check on things"
code: ls -alh
- script:
name: "get current version"
code: export APP_VERSION=$(cat version)
- github-create-release:
token: $GITHUB_TOKEN
tag: $APP_VERSION
- github-upload-asset:
token: $GITHUB_TOKEN
file: nightscout-sidecar.zip