mirror of
				https://github.com/spectreconsole/spectre.console.git
				synced 2025-10-25 15:19:23 +00:00 
			
		
		
		
	Update dependencies
* Add support for C# 12 * Run all tests on all major .NET SDKs * Only build on Ubuntu * Do not build docs for pull requests * Add Cédric Luthi, and Frank Ray to authors * Drop netstandard2.0 for ImageSharp plugin
This commit is contained in:
		
				
					committed by
					
						 Patrik Svensson
						Patrik Svensson
					
				
			
			
				
	
			
			
			
						parent
						
							703d653ec5
						
					
				
				
					commit
					b21e07ea94
				
			
							
								
								
									
										65
									
								
								.github/workflows/publish.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										65
									
								
								.github/workflows/publish.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -15,26 +15,13 @@ env: | ||||
| jobs: | ||||
|  | ||||
|   ################################################### | ||||
|   # BUILD | ||||
|   # PUBLISH | ||||
|   ################################################### | ||||
|  | ||||
|   build: | ||||
|     name: Build | ||||
|     if: | | ||||
|       (!startsWith(github.event.head_commit.message, 'skip-ci')  | ||||
|       && !startsWith(github.event.head_commit.message, 'chore:')) | ||||
|       || startsWith(github.ref, 'refs/tags/') | ||||
|     strategy: | ||||
|       matrix: | ||||
|         kind: ['linux', 'windows', 'macOS'] | ||||
|         include: | ||||
|           - kind: linux | ||||
|             os: ubuntu-latest | ||||
|           - kind: windows | ||||
|             os: windows-latest | ||||
|           - kind: macOS | ||||
|             os: macos-latest | ||||
|     runs-on: ${{ matrix.os }} | ||||
|     name: Publish NuGet Packages | ||||
|     if: "!contains(github.event.head_commit.message, 'skip-ci') || startsWith(github.ref, 'refs/tags/')" | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v3 | ||||
| @@ -43,12 +30,19 @@ jobs: | ||||
|  | ||||
|       - name: Setup .NET SDK | ||||
|         uses: actions/setup-dotnet@v3 | ||||
|         with: | ||||
|           dotnet-version: | | ||||
|             6.0.x | ||||
|             7.0.x | ||||
|             8.0.x | ||||
|  | ||||
|       - name: Build | ||||
|       - name: Publish | ||||
|         shell: bash | ||||
|         run: | | ||||
|           dotnet tool restore | ||||
|           dotnet cake | ||||
|           dotnet cake --target="publish" \ | ||||
|             --nuget-key="${{secrets.NUGET_API_KEY}}" \ | ||||
|             --github-key="${{secrets.GITHUB_TOKEN}}" | ||||
|  | ||||
|   ################################################### | ||||
|   # DOCS | ||||
| @@ -88,35 +82,4 @@ jobs: | ||||
|       run: | | ||||
|         cd docs | ||||
|         dotnet tool restore | ||||
|         dotnet run --configuration Release -- deploy | ||||
|  | ||||
|   ################################################### | ||||
|   # PUBLISH | ||||
|   ################################################### | ||||
|  | ||||
|   publish: | ||||
|     name: Publish NuGet Packages | ||||
|     needs: [build] | ||||
|     if: "!contains(github.event.head_commit.message, 'skip-ci') || startsWith(github.ref, 'refs/tags/')" | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v3 | ||||
|         with: | ||||
|           fetch-depth: 0 | ||||
|  | ||||
|       - name: Setup .NET SDK | ||||
|         uses: actions/setup-dotnet@v3 | ||||
|         with: | ||||
|           dotnet-version: | | ||||
|             6.0.x | ||||
|             7.0.x | ||||
|             8.0.x | ||||
|  | ||||
|       - name: Publish | ||||
|         shell: bash | ||||
|         run: | | ||||
|           dotnet tool restore | ||||
|           dotnet cake --target="publish" \ | ||||
|             --nuget-key="${{secrets.NUGET_API_KEY}}" \ | ||||
|             --github-key="${{secrets.GITHUB_TOKEN}}" | ||||
|         dotnet run --configuration Release -- deploy | ||||
		Reference in New Issue
	
	Block a user