Skip to content

Commit 9c3ea85

Browse files
committed
Show links after upload
1 parent a4e5d3e commit 9c3ea85

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

main.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import (
99
"regexp"
1010
"runtime"
1111
"strings"
12+
"text/tabwriter"
1213
"time"
1314

1415
"github.com/google/go-github/github"
1516
"github.com/gregjones/httpcache"
16-
1717
"github.com/robertkrimen/gphr/gphr"
1818
)
1919

@@ -286,6 +286,12 @@ func main() {
286286
binary.Asset = *asset
287287
}
288288

289+
table := tabwriter.NewWriter(os.Stdout, 0, 8, 2, '\t', 0)
290+
for _, binary := range binaries {
291+
fmt.Fprintf(table, "%s\t%s\n", binary.Name, "https://"+gh.Location()+"/releases/download/"+*release.TagName+"/"+*binary.Asset.Name)
292+
}
293+
table.Flush()
294+
289295
if !*flags.release.keep {
290296
// 7. Delete matching assets from other releases.
291297
err = nil

0 commit comments

Comments
 (0)