2019-12-02 02:55:38 -08:00
|
|
|
language: go
|
2019-12-02 02:33:59 -08:00
|
|
|
|
|
|
|
go:
|
|
|
|
- "1.13"
|
2019-12-02 03:15:40 -08:00
|
|
|
- master
|
2019-12-02 02:33:59 -08:00
|
|
|
|
|
|
|
script:
|
2019-12-02 03:37:04 -08:00
|
|
|
- go test -v ./cmd/nps/
|
2019-12-02 02:55:38 -08:00
|
|
|
before_deploy:
|
|
|
|
- GOARCH=amd64 GOOS=linux go build cmd/nps/nps.go
|
|
|
|
- zip -r server_linux_amd64.zip nps conf web
|
2019-12-02 04:28:03 -08:00
|
|
|
- GOARCH=amd64 GOOS=darwin go build cmd/nps/nps.go
|
|
|
|
- zip -r server_macos_amd64.zip nps conf web
|
2019-12-02 04:29:31 -08:00
|
|
|
- GOARCH=amd64 GOOS=windows go build cmd/nps/nps.go
|
|
|
|
- zip -r server_windows_amd64.zip nps conf web
|
2019-12-02 04:28:03 -08:00
|
|
|
|
2019-12-02 02:55:38 -08:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
2019-12-02 05:15:43 -08:00
|
|
|
api_key:
|
|
|
|
secure: ${TOKEN}
|
2019-12-02 02:55:38 -08:00
|
|
|
skip_cleanup: true
|
|
|
|
file:
|
|
|
|
- server_linux_amd64.zip
|
2019-12-02 06:20:33 -08:00
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
all_branches: true
|