99using Nuke . Common . Tools . DotNet ;
1010using Nuke . Common . Utilities . Collections ;
1111using static Nuke . Common . EnvironmentInfo ;
12- //using static Nuke.Common.IO.FileSystemTasks;
1312using static Nuke . Common . IO . PathConstruction ;
1413using static Nuke . Common . Tools . DotNet . DotNetTasks ;
1514using Nuke . Common . CI . GitHubActions ;
2322using System . Security . Cryptography ;
2423using System . Buffers ;
2524using System . Text . Json ;
26- using System . IO ;
2725using Nuke . Common . Utilities ;
28- using System . Text . Json . Serialization ;
2926using System . Net . Http . Json ;
3027[ GitHubActions (
3128 "build-repository" ,
@@ -83,14 +80,12 @@ GitHubClient GitHubClient
8380 WriteIndented = IsLocalBuild ,
8481 } ;
8582
86- const string RepositoryManifestFileName = "index.json" ;
87-
88- static VpmRepositorySettings Settings { get ; } = new ( )
83+ static VpmRepositoryBuildSettings Settings { get ; } = new ( )
8984 {
9085 Id = "com.ramtype0.vpm-repository" ,
91- Name = "Ram.Type-0 VPM Repository" ,
86+ Name = GlobalSettings . RepositoryName ,
9287 Author = "Ram.Type-0" ,
93- Url = new ( IsLocalBuild ? "https://ramtype0.github.io/VpmRepository/index.json " : $ "https://{ GitHubActions . RepositoryOwner } .github.io/{ GitHubActions . Repository . Split ( '/' ) [ 1 ] } /{ RepositoryManifestFileName } ") ,
88+ Url = new ( IsLocalBuild ? $ "https://ramtype0.github.io/VpmRepository/{ GlobalSettings . PublishedRepositoryManifestFileName } " : $ "https://{ GitHubActions . RepositoryOwner } .github.io/{ GitHubActions . Repository . Split ( '/' ) [ 1 ] } /{ GlobalSettings . PublishedRepositoryManifestFileName } ") ,
9489 GitHubRepositories =
9590 {
9691 [ "RamType0" ] = [ "Meshia.MeshSimplification" ] ,
@@ -102,7 +97,7 @@ GitHubClient GitHubClient
10297 Target RefreshVpmRepositoryManifest => _ => _
10398 . Executes ( async ( ) =>
10499 {
105- AbsolutePath vpmRepositoryManifestJsonPath = ( WorkingDirectory / "VpmRepository.Web" / "wwwroot" / RepositoryManifestFileName ) ;
100+ AbsolutePath vpmRepositoryManifestJsonPath = ( WorkingDirectory / "VpmRepository.Web" / "wwwroot" / GlobalSettings . PublishedRepositoryManifestFileName ) ;
106101
107102 VpmRepositoryManifest ? existingVpmRepositoryManifest = null ;
108103 if ( vpmRepositoryManifestJsonPath . FileExists ( ) )
0 commit comments