kubekey/.github/workflows/ci.yml
2020-09-28 22:33:21 +08:00

39 lines
666 B
YAML

name: CI
on:
push:
branches:
- 'master'
- 'release*'
tags:
- 'v*'
pull_request:
branches:
- 'master'
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.14
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Build
run: go build -v -o output/kk ./main.go
- uses: actions/upload-artifact@v2
if: github.event_name == 'push'
with:
name: kk
path: output/kk