powerproto/.github/workflows/build.yml
storyicon 9aac714c32
init
Signed-off-by: storyicon <yuanchao@bilibili.com>
2021-07-21 00:24:43 +08:00

28 lines
No EOL
693 B
YAML

name: Go
on:
push:
tags: [ '**' ]
pull_request:
tags: [ '**' ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Build
run: make build
- name: Release
uses: fnkr/github-action-ghr@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GHR_COMPRESS: gz
GHR_PATH: /home/runner/work/powerproto/powerproto/dist/
GITHUB_TOKEN: ${{ secrets.ACTIONS_SECRET }}