Skip to content

Commit

Permalink
[[FIX]] Fixed semantic-release-replace-plugin config
Browse files Browse the repository at this point in the history
  • Loading branch information
suyanlong authored and vipwzw committed Oct 27, 2021
1 parent f66b09c commit 6c79cfd
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 17 deletions.
28 changes: 13 additions & 15 deletions .releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,19 @@
"countMatches": true
},
{
{
"files": [ "README.md" ],
"from": "# chain33 官方插件系统(.*)",
"to": "# chain33 官方插件系统(v${nextRelease.version})",
"results": [
{
"file": "README.md",
"hasChanged": true,
"numMatches": 1,
"numReplacements": 1
}
],
"countMatches": true
},
}
"files": ["README.md"],
"from": "# chain33 官方插件系统(.*)",
"to": "# chain33 官方插件系统(v${nextRelease.version})",
"results": [
{
"file": "README.md",
"hasChanged": true,
"numMatches": 1,
"numReplacements": 1
}
],
"countMatches": true
},
]
}
],
Expand Down
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ var (
func main() {
flag.Parse()
if *versionCmd {
fmt.Println(fmt.Sprintf("build time: %s", version.BuildTime))
fmt.Println(fmt.Sprintf("Build time: %s", version.BuildTime))
fmt.Println(fmt.Sprintf("System version: %s", version.Platform))
fmt.Println(fmt.Sprintf("Golang version: %s", version.GoVersion))
fmt.Println(fmt.Sprintf("plugin version: %s", version.GetVersion()))
fmt.Println(fmt.Sprintf("chain33 frame version: %s", frameVersion.GetVersion()))
return
Expand Down
11 changes: 10 additions & 1 deletion version/version.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
package version

import (
"fmt"
"runtime"
)

//var version control
var (
Version = "master"
Version = "1.65.3"
GitCommit string
BuildTime string
// GoVersion system go version
GoVersion = runtime.Version()
// Platform info
Platform = fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH)
)

//GetVersion 获取版本信息
Expand Down

0 comments on commit 6c79cfd

Please sign in to comment.