Skip to content

Commit

Permalink
push after commiting all artifacts
Browse files Browse the repository at this point in the history
Signed-off-by: Gaël Goinvic <[email protected]>
  • Loading branch information
gaelgatelement committed Sep 19, 2023
1 parent c612f1e commit dc494fd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkg/releaser/releaser.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ func (r *Releaser) CreateReleases() error {
if len(packages) == 0 {
return errors.Errorf("no charts found at %s", r.config.PackagePath)
}

worktree, err := r.git.AddWorktree("", r.config.Remote+"/"+r.config.PagesBranch)
if err != nil {
return err
Expand Down Expand Up @@ -364,13 +363,13 @@ func (r *Releaser) CreateReleases() error {
if err := r.git.Commit(worktree, fmt.Sprintf("Publishing chart package for %s", releaseName)); err != nil {
return err
}

if err := r.pushToPagesBranch(worktree); err != nil {
return err
}
}
}

if err := r.pushToPagesBranch(worktree); err != nil {
return err
}

return nil
}

Expand Down

0 comments on commit dc494fd

Please sign in to comment.