Updating update-master to reset to release and copy NuGet.master.config to
repos
This commit is contained in:
parent
73a439804b
commit
ac129c71ac
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<packageSources>
|
||||||
|
<add key="NuGet.org" value="https://nuget.org/api/v2/" />
|
||||||
|
</packageSources>
|
||||||
|
</configuration>
|
||||||
|
|
@ -155,16 +155,25 @@ var buildTarget = "compile"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#update-master
|
#pull-all
|
||||||
-// Merge release branch to master
|
|
||||||
for each='var repo in GetAllRepos()'
|
for each='var repo in GetAllRepos()'
|
||||||
-CloneOrUpdate(repo);
|
-CloneOrUpdate(repo);
|
||||||
|
|
||||||
var gitFolder = '${repo}'
|
#update-master
|
||||||
git gitCommand='fetch origin'
|
-// Merge release branch to master
|
||||||
git gitCommand='checkout origin/master -B master'
|
@{
|
||||||
git gitCommand='merge origin/release --ff-only'
|
foreach (var repo in GetAllRepos())
|
||||||
git gitCommand='push origin master:master'
|
{
|
||||||
|
CloneOrUpdate(repo);
|
||||||
|
|
||||||
|
GitCommand(repo, "checkout origin/release -B master");
|
||||||
|
File.Copy(Path.Combine("build-template", "NuGet.master.config"),
|
||||||
|
Path.Combine(repo, "NuGet.config"),
|
||||||
|
overwrite: true);
|
||||||
|
GitCommand(repo, "commit -am \"Updating NuGet.config\"");
|
||||||
|
GitCommand(repo, "push origin master");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#only-compile target='compile'
|
#only-compile target='compile'
|
||||||
@{
|
@{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue