blessing-skin-plugins/publish.ps1

17 lines
394 B
PowerShell
Raw Normal View History

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