gctGenerator/build.azure.ps1

20 lines
564 B
PowerShell
Raw Normal View History

2020-06-28 13:30:10 +09:00
$ErrorActionPreference = "Stop";
Write-Host -ForegroundColor Blue "Ensuring yarn is installed..";
npm i -g yarn;
Write-Host -ForegroundColor Blue "Installing dependencies..";
yarn;
Write-Host -ForegroundColor Blue "Creating new build..";
yarn build;
Write-Host -ForegroundColor Blue "Initializing git repository";
git config --local user.name "BotPatty";
git config --local user.email "ci@zint.ch";
$Remote = (git remote get-url origin);
Set-Location "./docs/.vuepress/dist";
git init;
git remote add origin $Remote;
git add .;
git commit -m "auto-deployment";