diff --git a/pipeline/compress/compress.go b/pipeline/compress/compress.go
index <HASH>..<HASH> 100644
--- a/pipeline/compress/compress.go
+++ b/pipeline/compress/compress.go
@@ -44,9 +44,9 @@ func create(system, arch string, config config.ProjectConfig) error {
 	gw := gzip.NewWriter(file)
 	tw := tar.NewWriter(gw)
 	defer func() {
-		_ = file.Close()
-		_ = gw.Close()
 		_ = tw.Close()
+		_ = gw.Close()
+		_ = file.Close()
 	}()
 	for _, f := range config.Files {
 		if err := addFile(tw, f, f); err != nil {
Reorder `defer`'d closers

Commit <URL> whereby
the tarball is closed before data is completely written, thus breaking the release package