Skip to content

Commit

Permalink
Feat: travis ci deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
HFO4 committed Mar 11, 2020
1 parent 074522c commit 0ec97ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,20 @@ git:
depth: 1
install:
- go get github.com/rakyll/statik
- sudo apt install gcc-mingw-w64
- sudo apt install gcc-arm-linux-gnueabi
before_script:
- statik -src=models -f
- chmod +x ./build.sh
script:
- ./build.sh -r b
before_deploy:
- sudo apt install gcc-mingw-w64
- apt-get install gcc-arm-linux-gnueabi
- chmod +x ./build.sh
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: release/*
draft: true
skip_cleanup: true
cleanup: true
# script:
# - go test -coverprofile=coverage.txt -covermode=atomic ./...
# after_success:
Expand Down
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ buildAssets () {
rm -rf assets/build
rm -f statik/statik.go

export CI=false

cd $REPO/assets

yarn install
Expand Down

0 comments on commit 0ec97ca

Please sign in to comment.