You've already forked watchtower
							
							
				mirror of
				https://github.com/containrrr/watchtower.git
				synced 2025-10-31 00:17:44 +02:00 
			
		
		
		
	ci: move docs to separate action (#942)
This commit is contained in:
		
							
								
								
									
										33
									
								
								.github/workflows/publish-docs.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								.github/workflows/publish-docs.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,33 @@ | |||||||
|  | name: Publish Docs | ||||||
|  |  | ||||||
|  | on: | ||||||
|  |   workflow_dispatch: { } | ||||||
|  |   workflow_run: | ||||||
|  |     workflows: [ "Release (Production)" ] | ||||||
|  |     branches: [ main ] | ||||||
|  |     types: | ||||||
|  |       - completed | ||||||
|  |  | ||||||
|  | jobs: | ||||||
|  |   publish-docs: | ||||||
|  |     name: Publish Docs | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     steps: | ||||||
|  |       - name: Checkout | ||||||
|  |         uses: actions/checkout@v2 | ||||||
|  |         with: | ||||||
|  |           fetch-depth: 0 | ||||||
|  |       - name: Install mkdocs | ||||||
|  |         run: | | ||||||
|  |           pip install \ | ||||||
|  |             mkdocs \ | ||||||
|  |             mkdocs-material \ | ||||||
|  |             md-toc | ||||||
|  |       - name: Generate docs | ||||||
|  |         run: mkdocs gh-deploy --strict | ||||||
|  | #      - name: Publish docs | ||||||
|  | #        uses: peaceiris/actions-gh-pages@v3 | ||||||
|  | #        with: | ||||||
|  | #          github_token: ${{ secrets.GITHUB_TOKEN }} | ||||||
|  | #          publish_dir: ./site | ||||||
|  |  | ||||||
							
								
								
									
										23
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							| @@ -187,29 +187,6 @@ jobs: | |||||||
|             docker manifest push ghcr.io/containrrr/watchtower:$(echo $TAG | sed 's/^v*//') && \ |             docker manifest push ghcr.io/containrrr/watchtower:$(echo $TAG | sed 's/^v*//') && \ | ||||||
|             docker manifest push ghcr.io/containrrr/watchtower:latest |             docker manifest push ghcr.io/containrrr/watchtower:latest | ||||||
|  |  | ||||||
|   publish-docs: |  | ||||||
|     name: Publish Docs |  | ||||||
|     needs: build |  | ||||||
|     runs-on: ubuntu-latest |  | ||||||
|     steps: |  | ||||||
|       - name: Checkout |  | ||||||
|         uses: actions/checkout@v2 |  | ||||||
|         with: |  | ||||||
|           fetch-depth: 0 |  | ||||||
|       - name: Install mkdocs |  | ||||||
|         run: | |  | ||||||
|           pip install \ |  | ||||||
|             mkdocs \ |  | ||||||
|             mkdocs-material \ |  | ||||||
|             md-toc |  | ||||||
|       - name: Generate docs |  | ||||||
|         run: mkdocs build |  | ||||||
|       - name: Publish docs |  | ||||||
|         uses: peaceiris/actions-gh-pages@v3 |  | ||||||
|         with: |  | ||||||
|           github_token: ${{ secrets.GITHUB_TOKEN }} |  | ||||||
|           publish_dir: ./site |  | ||||||
|  |  | ||||||
|   renew-docs: |   renew-docs: | ||||||
|     name: Refresh pkg.go.dev |     name: Refresh pkg.go.dev | ||||||
|     needs: build |     needs: build | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user