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
17
.travis.yml
17
.travis.yml
@ -3,22 +3,17 @@ language: go
|
||||
go:
|
||||
- 1.13
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- stage: test-build
|
||||
skip_cleanup: true
|
||||
script: go build -o webp-server-linux-amd64 webp-server.go
|
||||
script: ls
|
||||
env: GO111MODULE=on
|
||||
|
||||
script: GOARCH=amd64 go build -o webp-server-linux-amd64 webp-server.go
|
||||
|
||||
- stage: GitHub Release
|
||||
script: echo "Deploying to GitHub releases ..."
|
||||
deploy:
|
||||
provider: releases
|
||||
api_key: $GITHUB_OAUTH_TOKEN
|
||||
skip_cleanup: true
|
||||
file:
|
||||
- webp-server
|
||||
- webp-server-linux-amd64
|
||||
on:
|
||||
repo: webp-sh/webp_server_go
|
||||
tags: false
|
||||
branch: add-travis-ci
|
||||
tags: true
|
||||
branch: master
|
Loading…
x
Reference in New Issue
Block a user