Skip to content

Commit 6293f7a

Browse files
authored
Merge pull request #264 from carolynvs/run-porter-from-bin
Use porter from bin during CI
2 parents d66f008 + 15fc570 commit 6293f7a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

magefile.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,16 @@ var operatorBundleRef = fmt.Sprintf("%s/%s:%s", operatorRegistry, operatorImage,
8585
// Build a command that stops the build on if the command fails
8686
var must = shx.CommandBuilder{StopOnError: true}
8787

88-
// Publish the cross-compiled binaries.
88+
// Publish uploads the cross-compiled binaries for the plugin
8989
func Publish() {
90+
mg.SerialDeps(porter.UseBinForPorterHome, porter.EnsurePorter)
91+
92+
releases.PreparePluginForPublish(pluginName)
9093
releases.PublishPlugin(pluginName)
9194
releases.PublishPluginFeed(pluginName)
9295
}
9396

94-
// Test out publish locally, with your github forks
97+
// TestPublish tries out publish locally, with your github forks
9598
// Assumes that you forked and kept the repository name unchanged.
9699
func TestPublish(username string) {
97100
pluginRepo := fmt.Sprintf("github.com/%s/%s-plugins", username, pluginName)

0 commit comments

Comments
 (0)