mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-01 01:25:27 +08:00 
			
		
		
		
	Build docs as part of CI
This commit is contained in:
		
							
								
								
									
										29
									
								
								.github/workflows/ci.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										29
									
								
								.github/workflows/ci.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -6,6 +6,35 @@ env: | |||||||
|   DOTNET_CLI_TELEMETRY_OPTOUT: true |   DOTNET_CLI_TELEMETRY_OPTOUT: true | ||||||
|  |  | ||||||
| jobs: | jobs: | ||||||
|  |  | ||||||
|  |   ################################################### | ||||||
|  |   # DOCS | ||||||
|  |   ################################################### | ||||||
|  |  | ||||||
|  |   docs: | ||||||
|  |     name: Documentation | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     steps: | ||||||
|  |     - name: Checkout | ||||||
|  |       uses: actions/checkout@master | ||||||
|  |  | ||||||
|  |     - name: Setup dotnet | ||||||
|  |       uses: actions/setup-dotnet@v1 | ||||||
|  |       with: | ||||||
|  |         dotnet-version: '3.1.301' # SDK Version to use. | ||||||
|  |  | ||||||
|  |     - name: Build | ||||||
|  |       shell: bash | ||||||
|  |       env: | ||||||
|  |         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
|  |       run: | | ||||||
|  |         cd docs | ||||||
|  |         dotnet run --configuration Release | ||||||
|  |  | ||||||
|  |   ################################################### | ||||||
|  |   # BUILD | ||||||
|  |   ################################################### | ||||||
|  |  | ||||||
|   build: |   build: | ||||||
|     name: Build |     name: Build | ||||||
|     if: "!contains(github.event.head_commit.message, 'skip-ci')" |     if: "!contains(github.event.head_commit.message, 'skip-ci')" | ||||||
|   | |||||||
							
								
								
									
										5
									
								
								.github/workflows/docs.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/workflows/docs.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -7,6 +7,11 @@ on: | |||||||
|         - 'src/**' |         - 'src/**' | ||||||
|  |  | ||||||
| jobs: | jobs: | ||||||
|  |  | ||||||
|  |   ################################################### | ||||||
|  |   # DOCS | ||||||
|  |   ################################################### | ||||||
|  |  | ||||||
|   build: |   build: | ||||||
|     name: Deploy |     name: Deploy | ||||||
|     runs-on: windows-latest |     runs-on: windows-latest | ||||||
|   | |||||||
							
								
								
									
										25
									
								
								.github/workflows/publish.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										25
									
								
								.github/workflows/publish.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -15,12 +15,37 @@ env: | |||||||
|  |  | ||||||
| jobs: | jobs: | ||||||
|  |  | ||||||
|  |   ################################################### | ||||||
|  |   # DOCS | ||||||
|  |   ################################################### | ||||||
|  |  | ||||||
|  |   docs: | ||||||
|  |     name: Documentation | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     steps: | ||||||
|  |     - name: Checkout | ||||||
|  |       uses: actions/checkout@master | ||||||
|  |  | ||||||
|  |     - name: Setup dotnet | ||||||
|  |       uses: actions/setup-dotnet@v1 | ||||||
|  |       with: | ||||||
|  |         dotnet-version: '3.1.301' # SDK Version to use. | ||||||
|  |  | ||||||
|  |     - name: Build | ||||||
|  |       shell: bash | ||||||
|  |       env: | ||||||
|  |         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
|  |       run: | | ||||||
|  |         cd docs | ||||||
|  |         dotnet run --configuration Release | ||||||
|  |  | ||||||
|   ################################################### |   ################################################### | ||||||
|   # BUILD |   # BUILD | ||||||
|   ################################################### |   ################################################### | ||||||
|  |  | ||||||
|   build: |   build: | ||||||
|     name: Build |     name: Build | ||||||
|  |     needs: [docs] | ||||||
|     if: "!contains(github.event.head_commit.message, 'skip-ci') || startsWith(github.ref, 'refs/tags/')" |     if: "!contains(github.event.head_commit.message, 'skip-ci') || startsWith(github.ref, 'refs/tags/')" | ||||||
|     strategy: |     strategy: | ||||||
|       matrix: |       matrix: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Patrik Svensson
					Patrik Svensson