mirror of
				https://github.com/cloudreve/cloudreve.git
				synced 2025-11-04 04:47:24 +08:00 
			
		
		
		
	Feat: travis ci deploy
This commit is contained in:
		@ -5,21 +5,20 @@ git:
 | 
				
			|||||||
  depth: 1
 | 
					  depth: 1
 | 
				
			||||||
install:
 | 
					install:
 | 
				
			||||||
  - go get github.com/rakyll/statik
 | 
					  - go get github.com/rakyll/statik
 | 
				
			||||||
 | 
					  - sudo apt install gcc-mingw-w64
 | 
				
			||||||
 | 
					  - sudo apt install gcc-arm-linux-gnueabi
 | 
				
			||||||
before_script:
 | 
					before_script:
 | 
				
			||||||
  - statik -src=models -f
 | 
					  - statik -src=models -f
 | 
				
			||||||
 | 
					  - chmod +x ./build.sh
 | 
				
			||||||
script:
 | 
					script:
 | 
				
			||||||
  - ./build.sh -r b
 | 
					  - ./build.sh -r b
 | 
				
			||||||
before_deploy:
 | 
					 | 
				
			||||||
  - sudo apt install gcc-mingw-w64
 | 
					 | 
				
			||||||
  - apt-get install gcc-arm-linux-gnueabi
 | 
					 | 
				
			||||||
  - chmod +x ./build.sh
 | 
					 | 
				
			||||||
deploy:
 | 
					deploy:
 | 
				
			||||||
  provider: releases
 | 
					  provider: releases
 | 
				
			||||||
  api_key: $GITHUB_TOKEN
 | 
					  api_key: $GITHUB_TOKEN
 | 
				
			||||||
  file_glob: true
 | 
					  file_glob: true
 | 
				
			||||||
  file: release/*
 | 
					  file: release/*
 | 
				
			||||||
  draft: true
 | 
					  draft: true
 | 
				
			||||||
  skip_cleanup: true
 | 
					  cleanup: true
 | 
				
			||||||
# script:
 | 
					# script:
 | 
				
			||||||
#   - go test -coverprofile=coverage.txt -covermode=atomic ./...
 | 
					#   - go test -coverprofile=coverage.txt -covermode=atomic ./...
 | 
				
			||||||
# after_success:
 | 
					# after_success:
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user