mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 13:42:02 +08:00
Travis CI auto build to release
This commit is contained in:
parent
810fba5c89
commit
73884394d9
19
.travis.yml
19
.travis.yml
@ -3,22 +3,17 @@ language: go
|
|||||||
go:
|
go:
|
||||||
- 1.13
|
- 1.13
|
||||||
|
|
||||||
jobs:
|
env: GO111MODULE=on
|
||||||
include:
|
|
||||||
- stage: test-build
|
|
||||||
skip_cleanup: true
|
|
||||||
script: go build -o webp-server-linux-amd64 webp-server.go
|
|
||||||
script: ls
|
|
||||||
|
|
||||||
- stage: GitHub Release
|
script: GOARCH=amd64 go build -o webp-server-linux-amd64 webp-server.go
|
||||||
script: echo "Deploying to GitHub releases ..."
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key: $GITHUB_OAUTH_TOKEN
|
api_key: $GITHUB_OAUTH_TOKEN
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
file:
|
file:
|
||||||
- webp-server
|
- webp-server-linux-amd64
|
||||||
on:
|
on:
|
||||||
repo: webp-sh/webp_server_go
|
repo: webp-sh/webp_server_go
|
||||||
tags: false
|
tags: true
|
||||||
branch: add-travis-ci
|
branch: master
|
Loading…
x
Reference in New Issue
Block a user