Skip to content

Commit

Permalink
use main branch instead of master (dotnet#7287)
Browse files Browse the repository at this point in the history
  • Loading branch information
superyyrrzz authored Apr 12, 2021
1 parent e8b760c commit d1e67ba
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions azure-pipelines-master.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This YAML is used for the docfx v2 master release CI (https://dev.azure.com/ceapex/Engineering/_build?definitionId=1503&_a=summary)
# This YAML is used for the docfx v2 main release CI (https://dev.azure.com/ceapex/Engineering/_build?definitionId=1503&_a=summary)

variables:
- group: docfx-v2-pipeline-kv
Expand Down Expand Up @@ -36,7 +36,7 @@ steps:
displayName: 'gulp build'
inputs:
filename: node
arguments: '.\node_modules\gulp\bin\gulp.js master:build'
arguments: '.\node_modules\gulp\bin\gulp.js main:build'
workingFolder: tools/Deployment
env:
TOKEN: $(ServiceAccountGithubToken)
Expand Down Expand Up @@ -166,7 +166,7 @@ steps:
displayName: 'gulp pack'
inputs:
filename: node
arguments: '.\node_modules\gulp\bin\gulp.js master:pack'
arguments: '.\node_modules\gulp\bin\gulp.js main:pack'
workingFolder: tools/Deployment

- task: EsrpCodeSigning@1
Expand Down Expand Up @@ -209,7 +209,7 @@ steps:
displayName: 'gulp release'
inputs:
filename: node
arguments: '.\node_modules\gulp\bin\gulp.js master:release'
arguments: '.\node_modules\gulp\bin\gulp.js main:release'
workingFolder: tools/Deployment
env:
NUGETAPIKEY: $(NugetAPIKey)
Expand Down
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ trigger:
branches:
include:
- dev
- master
- main
pr:
- dev
- master
- main

pool:
name: Hosted Windows 2019 with VS2019
Expand Down
4 changes: 2 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $scriptRoot = $($MyInvocation.MyCommand.Definition) | Split-Path
. "$scriptRoot/common.ps1"

$ErrorActionPreference = 'Stop'
$releaseBranch = "master"
$releaseBranch = "main"
$gitCommand = "git"
$framework = "net472"
$packageVersion = "1.0.0"
Expand Down Expand Up @@ -64,7 +64,7 @@ if ($prod -eq $true) {
ProcessLastExitCode $lastexitcode "Get GIT branch name $branch"
}
else {
$branch = "master";
$branch = "main";
Write-Host "Release version using $branch branch"
}

Expand Down
6 changes: 3 additions & 3 deletions tools/Deployment/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ gulp.task("dev", gulp.series("clean", "build", "e2eTest"));
gulp.task("dev:build", gulp.series("clean", "build", "e2eTest"));
gulp.task("dev:release", gulp.series("pack", "publish:azdevops-perf-login", "publish:azdevops-perf", "publish:azdevops-internal-login", "publish:azdevops-internal", "publish:azdevops-ppe-login", "publish:azdevops-ppe"));

gulp.task("master:build", gulp.series("clean", "build:release", "e2eTest", "updateGhPage"));
gulp.task("master:pack", gulp.series("pack"));
gulp.task("master:release", gulp.series("packAssetZip", "publish:azdevops-prod-login", "publish:azdevops-prod", "publish:nuget", "publish:gh-release", "publish:gh-asset", "publish:chocolatey"));
gulp.task("main:build", gulp.series("clean", "build:release", "e2eTest", "updateGhPage"));
gulp.task("main:pack", gulp.series("pack"));
gulp.task("main:release", gulp.series("packAssetZip", "publish:azdevops-prod-login", "publish:azdevops-prod", "publish:nuget", "publish:gh-release", "publish:gh-asset", "publish:chocolatey"));

gulp.task("default", gulp.series("dev"));

0 comments on commit d1e67ba

Please sign in to comment.