mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix(docs): decploy scripts in travis needs to be single command
This commit is contained in:
		
							parent
							
								
									1e7fe3ec67
								
							
						
					
					
						commit
						28d4dd4846
					
				@ -26,10 +26,6 @@ cache:
 | 
			
		||||
deploy:
 | 
			
		||||
  # deploy doc on master to production
 | 
			
		||||
  - provider: script
 | 
			
		||||
    script:
 | 
			
		||||
      - git config --global user.name "${GH_NAME}"
 | 
			
		||||
      - git config --global user.email "${GH_EMAIL}"
 | 
			
		||||
      - echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
 | 
			
		||||
      - cd website && npm install && GIT_USER="${GH_NAME}" npm run publish-gh-pages
 | 
			
		||||
    script: bash scripts/deploy-docs.sh
 | 
			
		||||
    on:
 | 
			
		||||
      branch: master
 | 
			
		||||
							
								
								
									
										6
									
								
								scripts/deploy-docs.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										6
									
								
								scripts/deploy-docs.sh
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,6 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
git config --global user.name "${GH_NAME}"
 | 
			
		||||
git config --global user.email "${GH_EMAIL}"
 | 
			
		||||
echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
 | 
			
		||||
cd website && npm install && GIT_USER="${GH_NAME}" npm run publish-gh-pages
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user