ci: documentation pipelines #39
					 1 changed files with 4 additions and 8 deletions
				
			
		
							
								
								
									
										12
									
								
								.drone.yml
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								.drone.yml
									
										
									
									
									
								
							| 
						 | 
					@ -92,7 +92,8 @@
 | 
				
			||||||
kind: pipeline
 | 
					kind: pipeline
 | 
				
			||||||
type: docker 
 | 
					type: docker 
 | 
				
			||||||
name: documentation
 | 
					name: documentation
 | 
				
			||||||
 | 
					node:
 | 
				
			||||||
 | 
					  environment: ryali
 | 
				
			||||||
trigger:
 | 
					trigger:
 | 
				
			||||||
  branch:
 | 
					  branch:
 | 
				
			||||||
  - main
 | 
					  - main
 | 
				
			||||||
| 
						 | 
					@ -102,7 +103,6 @@ steps:
 | 
				
			||||||
  image: documentation:latest
 | 
					  image: documentation:latest
 | 
				
			||||||
  pull: if-not-exists
 | 
					  pull: if-not-exists
 | 
				
			||||||
  commands:
 | 
					  commands:
 | 
				
			||||||
    # Build docs
 | 
					 | 
				
			||||||
    - pwd
 | 
					    - pwd
 | 
				
			||||||
    - cd docs
 | 
					    - cd docs
 | 
				
			||||||
    - mkdir generated
 | 
					    - mkdir generated
 | 
				
			||||||
| 
						 | 
					@ -110,9 +110,5 @@ steps:
 | 
				
			||||||
    - touch generated/api.rst
 | 
					    - touch generated/api.rst
 | 
				
			||||||
    - sphinx-build -M html . .
 | 
					    - sphinx-build -M html . .
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - mv ./html light_docs_dev_staging
 | 
					    - sudo rm -rf /light_docs_dev/*
 | 
				
			||||||
    - ssh light@5.75.206.84 "sudo rm -rf /home/light/light_docs_dev_staging"
 | 
					    - sudo mv ./html/* /light_docs_dev/
 | 
				
			||||||
    - scp -r ./light_docs_dev_staging light@5.75.206.84:/home/light/
 | 
					 | 
				
			||||||
    - ssh light@5.75.206.84 "sudo rm -rf /home/light/light_docs_dev/*"
 | 
					 | 
				
			||||||
    - ssh light@5.75.206.84 "sudo mv /home/light/light_docs_dev_staging/* /home/light/light_docs_dev/"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue