-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add back magefile for release task (#3218)
* chore: add back magefile for release task Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: fix changelog update --------- Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com>
- Loading branch information
1 parent
de136dc
commit b396b9a
Showing
2 changed files
with
36 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
//go:build mage | ||
// +build mage | ||
|
||
package main | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/magefile/mage/mg" | ||
"go.flipt.io/build/release" | ||
) | ||
|
||
type Release mg.Namespace | ||
|
||
func (r Release) Next(ctx context.Context, module, versionParts string) error { | ||
return release.Next(module, versionParts) | ||
} | ||
|
||
func (r Release) Latest(ctx context.Context, module string) error { | ||
return release.Latest(module, false) | ||
} | ||
|
||
func (r Release) LatestRC(ctx context.Context, module string) error { | ||
return release.Latest(module, true) | ||
} | ||
|
||
func (r Release) Changelog(ctx context.Context, module, version string) error { | ||
return release.UpdateChangelog(module, version) | ||
} | ||
|
||
func (r Release) Tag(ctx context.Context, module, version string) error { | ||
return release.Tag(ctx, module, version) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters