mirror of
https://github.com/TECHNOFAB11/powerproto.git
synced 2025-12-12 16:10:03 +01:00
28 lines
No EOL
693 B
YAML
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 }} |