blessing-skin-plugins/publish.ps1
2019-07-31 15:28:26 +08:00

17 lines
394 B
PowerShell

git config --global user.name "Pig Fang"
git config --global user.email "g-plane@hotmail.com"
$env:NODE_ENV = 'production'
$token = $env:AZURE_TOKEN
git clone "https://anything:$token@dev.azure.com/blessing-skin/Plugins/_git/Plugins" .dist
node build.js
Set-Location .dist
git add .
$shouldUpdate = git status -s
if ($shouldUpdate) {
git commit -m "Publish"
git push origin master
}