Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions gxutil/pm.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,15 @@ func (pm *PM) InitPkg(dir, name, lang string, setup func(*Package)) error {

pkg := &Package{
PackageBase: PackageBase{
Name: name,
Author: username,
Language: lang,
Version: "0.0.0",
GxVersion: GxVersion,
ReleaseCmd: "git commit -a -m \"gx publish $VERSION\"",
Name: name,
Author: username,
Language: lang,
Version: "0.0.0",
GxVersion: GxVersion,
ReleaseCmd: "MESSAGE=\"gx publish $GX_VERSION\n\nReleased as $GX_HASH\"" +
"&& git commit -a -m \"$MESSAGE\"" +
"&& git tag -as -m \"$MESSAGE\" \"v$GX_VERSION\"" +
"&& echo 'Please remember to push tags with --tags'",
},
}

Expand Down