Commit 2d313baf authored by xiaochenl's avatar xiaochenl

ci:add-auto-release-scripts

ci:add-auto-release-scripts
parent 88308a69
name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
release:
name: Build Release on Linux and Macos
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.13
- name: Check out code
uses: actions/checkout@v2
- name: Build Binary
run: make release-binary
- name: Release Binary
uses: softprops/action-gh-release@v1
with:
files: build/fabric-client-*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
SHELL := /bin/bash
CURRENT_PATH = $(shell pwd)
DISTRO = $(shell uname)
GO = GO111MODULE=on go
......@@ -29,6 +30,10 @@ docker:
fabric1.4-linux:
cd scripts && sh cross_compile.sh linux-amd64 ${CURRENT_PATH}
release-binary:
mkdir -p build
$(GO) build -o build/fabric-client-${DISTRO} ./*.go
## make linter: Run golanci-lint
linter:
golangci-lint run
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment