mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-03 16:24:27 -05:00 
			
		
		
		
	CI should now publish the project for windows64 and linux64. WIP
This commit is contained in:
		@@ -3,6 +3,7 @@ image: mcr.microsoft.com/dotnet/sdk:5.0
 | 
				
			|||||||
stages:
 | 
					stages:
 | 
				
			||||||
  - build
 | 
					  - build
 | 
				
			||||||
  - test
 | 
					  - test
 | 
				
			||||||
 | 
					  - publish
 | 
				
			||||||
 | 
					
 | 
				
			||||||
variables:
 | 
					variables:
 | 
				
			||||||
  project: "NadekoBot"
 | 
					  project: "NadekoBot"
 | 
				
			||||||
@@ -19,6 +20,15 @@ build:
 | 
				
			|||||||
    - "cd $build_path"
 | 
					    - "cd $build_path"
 | 
				
			||||||
    - "dotnet build -c Release"
 | 
					    - "dotnet build -c Release"
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
 | 
					publish:
 | 
				
			||||||
 | 
					  stage: publish
 | 
				
			||||||
 | 
					  variables:
 | 
				
			||||||
 | 
					    build_path: "src"
 | 
				
			||||||
 | 
					  script:
 | 
				
			||||||
 | 
					    - "cd $build_path"
 | 
				
			||||||
 | 
					    - "dotnet publish -c Release -r win7-x64 -o output-windows-x64 src/NadekoBot/NadekoBot.csproj"
 | 
				
			||||||
 | 
					    - "dotnet publish -c Release -r linux-x64 -o output-linux-x64 src/NadekoBot/NadekoBot.csproj"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
test:
 | 
					test:
 | 
				
			||||||
  stage: test
 | 
					  stage: test
 | 
				
			||||||
  variables:
 | 
					  variables:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user