Add release script [skip ci]
This commit is contained in:
parent
d1d4c54818
commit
ae38c4d391
|
|
@ -9,7 +9,8 @@ before_deploy:
|
||||||
- node -v
|
- node -v
|
||||||
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.15.2
|
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.15.2
|
||||||
- export PATH="$HOME/.yarn/bin:$PATH"
|
- 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:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
|
|
|
||||||
24
scripts/release.sh
Normal file
24
scripts/release.sh
Normal 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
|
||||||
Loading…
Reference in New Issue
Block a user