mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-04 02:25:28 +08:00 
			
		
		
		
	Configures deployment to netlify
This commit is contained in:
		
				
					committed by
					
						
						Patrik Svensson
					
				
			
			
				
	
			
			
			
						parent
						
							c2da268129
						
					
				
				
					commit
					3ac63d2670
				
			@@ -1,5 +1,6 @@
 | 
			
		||||
using Statiq.Common;
 | 
			
		||||
using Statiq.Web.GitHub;
 | 
			
		||||
using Statiq.Web.Netlify;
 | 
			
		||||
 | 
			
		||||
namespace Docs.Pipelines
 | 
			
		||||
{
 | 
			
		||||
@@ -10,12 +11,11 @@ namespace Docs.Pipelines
 | 
			
		||||
            Deployment = true;
 | 
			
		||||
            OutputModules = new ModuleList
 | 
			
		||||
            {
 | 
			
		||||
                new DeployGitHubPages(
 | 
			
		||||
                    Config.FromSetting<string>(Constants.Site.Owner),
 | 
			
		||||
                    Config.FromSetting<string>(Constants.Site.Repository),
 | 
			
		||||
                    Config.FromSetting<string>(Constants.Deployment.GitHubToken))
 | 
			
		||||
                        .ToBranch(Config.FromSetting<string>(Constants.Deployment.TargetBranch))
 | 
			
		||||
                new DeployNetlifySite(
 | 
			
		||||
                    siteId: Config.FromSetting<string>(Constants.Deployment.NetlifySiteId),
 | 
			
		||||
                    accessToken: Config.FromSetting<string>(Constants.Deployment.NetlifyAccessToken)
 | 
			
		||||
                )
 | 
			
		||||
            };
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user