Add release script [skip ci]

This commit is contained in:
Pig Fang 2019-03-18 10:02:35 +08:00
parent d1d4c54818
commit ae38c4d391
2 changed files with 26 additions and 1 deletions

View File

@ -9,7 +9,8 @@ before_deploy:
- node -v
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.15.2
- export PATH="$HOME/.yarn/bin:$PATH"
- curl -sSL https://raw.githubusercontent.com/bs-community/release-script/master/release.sh | bash
- chmod +x ./scripts/release.sh
- RELEASE_TAG=$TRAVIS_TAG ./scripts/release.sh
deploy:
provider: releases

24
scripts/release.sh Normal file
View File

@ -0,0 +1,24 @@
#!/bin/bash
set -e
composer install --no-dev
rm -rf vendor/bin
yarn
yarn build
cp .env.example .env
zip -9 -r blessing-skin-server-$RELEASE_TAG.zip \
app \
bootstrap \
config \
database \
plugins \
public \
resources/lang \
resources/views \
routes \
storage \
vendor \
.env \
artisan \
LICENSE \
README.md \
README_EN.md