Skip to content

Commit 5de4864

Browse files
committed
chore(github-release): zip all
1 parent c29fa48 commit 5de4864

4 files changed

Lines changed: 35 additions & 1 deletion

File tree

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ after_success:
2929
./tasks/deploy-prod.sh
3030
fi
3131
32+
before_deploy:
33+
- ./tasks/zip.sh
34+
3235
deploy:
3336
- provider: releases
3437
api_key:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## [HEAD]
44
> Unreleased
55
6+
## [v1.2.3]
7+
> Aug 12, 2017
8+
69
* chore(npm): ncu update eslint
10+
* chore(github-release): zip all
711

812
## [v1.2.2]
913
> Aug 10, 2017

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"scripts": {
2323
"start": "micro src/index.js",
2424
"dev": "micro-dev src/index.js",
25-
"pkg": "pkg . --out-path pkg",
25+
"pkg": "rm -rf pkg && pkg . --out-path pkg",
2626
"eslint": "eslint ./",
2727
"format": "prettier --trailing-comma all --single-quote --write '{src,bin}/**/*.js'",
2828
"test": "NODE_ENV='test' TZ='UTC' jest --coverage --runInBand",

tasks/zip.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
set -exu
4+
5+
PROJECT='micro-medium-api'
6+
PKG='./pkg'
7+
8+
cd $PKG
9+
10+
# MAC
11+
mv $PROJECT-macos $PROJECT
12+
zip $PROJECT-macos.zip $PROJECT
13+
rm $PROJECT
14+
15+
# Windos
16+
mv $PROJECT-win.exe $PROJECT.exe
17+
zip $PROJECT-win.zip $PROJECT.exe
18+
rm $PROJECT.exe
19+
20+
# Linux
21+
mv $PROJECT-linux $PROJECT
22+
tar -cvzf $PROJECT-linux.tgz $PROJECT
23+
rm $PROJECT
24+
25+
# Log
26+
27+
ls -Al

0 commit comments

Comments
 (0)