mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
35 lines
930 B
Bash
Executable File
35 lines
930 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
composer install --no-dev
|
|
rm -rf vendor/bin
|
|
yarn
|
|
yarn build
|
|
zip -9 -r blessing-skin-server-$RELEASE_TAG.zip \
|
|
app \
|
|
bootstrap \
|
|
config \
|
|
database \
|
|
plugins \
|
|
public \
|
|
resources/lang \
|
|
resources/views \
|
|
resources/misc \
|
|
routes \
|
|
storage \
|
|
vendor \
|
|
.env.example \
|
|
artisan \
|
|
LICENSE \
|
|
README.md \
|
|
README_EN.md
|
|
|
|
mkdir dist
|
|
cd dist
|
|
cp ../blessing-skin-server-$RELEASE_TAG.zip blessing-skin-server-$RELEASE_TAG.zip
|
|
echo "{\"spec\":1,\"latest\":\"$RELEASE_TAG\",\"url\":\"https://dev.azure.com/blessing-skin/51010f6d-9f99-40f1-a262-0a67f788df32/_apis/git/repositories/a9ff8df7-6dc3-4ff8-bb22-4871d3a43936/Items?path=%2Fblessing-skin-server-$RELEASE_TAG.zip\"}" > update.json
|
|
git init
|
|
git add .
|
|
git commit -m "Publish"
|
|
git remote add origin https://blessing-skin:$AZURE_TOKEN@dev.azure.com/blessing-skin/Blessing%20Skin%20Server/_git/Blessing%20Skin%20Server
|
|
git push -f origin master
|