Unverified Commit eba020ca authored by Alexader's avatar Alexader Committed by GitHub

Merge pull request #34 from meshplus/build/add-auto-release-scripts

ci:add-auto-release-scripts
parents 88308a69 14c07a54
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-v*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
SHELL := /bin/bash
CURRENT_PATH = $(shell pwd)
DISTRO = $(shell uname)
CURRENT_TAG =$(shell git describe --abbrev=0 --tags)
GO = GO111MODULE=on go
......@@ -29,6 +31,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-${CURRENT_TAG}-${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