Compare commits
	
		
			1 Commits 
		
	
	
		
			6ac5622897
			...
			42c41b2244
		
	
	| Author | SHA1 | Date | 
|---|---|---|
| 
							
							
								
									
								
								 | 
						42c41b2244 | 
| 
						 | 
				
			
			@ -23,14 +23,18 @@ pipeline:
 | 
			
		|||
  slate-docs:
 | 
			
		||||
    image: 'slatedocs/slate'
 | 
			
		||||
    group: 'generate'
 | 
			
		||||
    # Slate requires a specific directory to run in
 | 
			
		||||
    directory: '/srv/slate'
 | 
			
		||||
    commands:
 | 
			
		||||
      - cd docs/api
 | 
			
		||||
      - bundle exec middleman build --clean
 | 
			
		||||
      - echo "$PWD"
 | 
			
		||||
      - mv "$CI_WORKSPACE/docs/api" /srv/slate/source
 | 
			
		||||
      - bundle exec middleman build --clean --watcher-disable
 | 
			
		||||
      - mv build "$CI_WORKSPACE/docs/api-build"
 | 
			
		||||
 | 
			
		||||
  archive:
 | 
			
		||||
    image: 'alpine'
 | 
			
		||||
    commands:
 | 
			
		||||
      - cp -r docs/api/build docs/public/api
 | 
			
		||||
      - cp -r docs/api-build docs/public/api
 | 
			
		||||
      - 'cd docs/public && tar czvf ../../docs.tar.gz *'
 | 
			
		||||
      - 'cd ../../src/_docs && tar czvf ../../api-docs.tar.gz *'
 | 
			
		||||
    when:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue