Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sidecar-client-fabric
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
sidecar-client-fabric
Commits
eba020ca
Unverified
Commit
eba020ca
authored
Apr 14, 2021
by
Alexader
Committed by
GitHub
Apr 14, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #34 from meshplus/build/add-auto-release-scripts
ci:add-auto-release-scripts
parents
88308a69
14c07a54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
release.yml
.github/workflows/release.yml
+33
-0
Makefile
Makefile
+7
-0
No files found.
.github/workflows/release.yml
0 → 100644
View file @
eba020ca
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
Makefile
View file @
eba020ca
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment