mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	update ci for documentation build vs deploy
This commit is contained in:
		
							
								
								
									
										40
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										40
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -37,6 +37,46 @@ jobs: | ||||
|     runs-on: ubuntu-20.04 | ||||
|     needs: | ||||
|       - pre-commit | ||||
|     steps: | ||||
|       - | ||||
|         name: Checkout | ||||
|         uses: actions/checkout@v3 | ||||
|       - | ||||
|         name: Install pipenv | ||||
|         run: | | ||||
|           pipx install pipenv==2022.10.12 | ||||
|       - | ||||
|         name: Set up Python | ||||
|         uses: actions/setup-python@v4 | ||||
|         with: | ||||
|           python-version: 3.8 | ||||
|           cache: "pipenv" | ||||
|           cache-dependency-path: 'Pipfile.lock' | ||||
|       - | ||||
|         name: Install dependencies | ||||
|         run: | | ||||
|           pipenv sync --dev | ||||
|       - | ||||
|         name: List installed Python dependencies | ||||
|         run: | | ||||
|           pipenv run pip list | ||||
|       - | ||||
|         name: Make documentation | ||||
|         run: | | ||||
|           pipenv run mkdocs build --config-file ./mkdocs.yml | ||||
|       - | ||||
|         name: Upload artifact | ||||
|         uses: actions/upload-artifact@v3 | ||||
|         with: | ||||
|           name: documentation | ||||
|           path: site/ | ||||
|  | ||||
|   documentation-deploy: | ||||
|     name: "Deploy Documentation" | ||||
|     runs-on: ubuntu-20.04 | ||||
|     if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||||
|     needs: | ||||
|       - documentation | ||||
|     steps: | ||||
|       - | ||||
|         name: Checkout | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Michael Shamoon
					Michael Shamoon