diff options
| author | Jeff Carr <[email protected]> | 2025-10-07 19:05:39 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-07 19:05:39 -0500 |
| commit | 48bcafb2e388295567476f35e45b814f71692061 (patch) | |
| tree | 285795e6835803eee96d6a75ea2c91518a854b28 | |
| parent | e689e0c08ed981fe92ab28c1ca8adbd0f3440cae (diff) | |
break up these steps somewhatv0.1.24
| -rw-r--r-- | Makefile | 5 | ||||
| -rw-r--r-- | doBuild.go | 5 | ||||
| -rw-r--r-- | doDebian.go | 5 | ||||
| -rw-r--r-- | doPublish.go | 13 |
4 files changed, 9 insertions, 19 deletions
@@ -72,4 +72,7 @@ apt-update: -o APT::Get::List-Cleanup=0 publish: - GUIRELEASE_REASON="test publish" wit publish + GUIRELEASE_REASON="automated" wit publish + forge show + wit build deb --verbose + forge normal @@ -30,11 +30,6 @@ func doBuild() error { if argv.Build.Debian != nil { doBuildDeb() - if totalBuilt > 0 { - if _, err := shell.RunRealtimeError([]string{"do-aptly"}); err != nil { - me.sh.BadExit("aptly failed", nil) - } - } okExit("") } diff --git a/doDebian.go b/doDebian.go index fd2bde2..0a6be8d 100644 --- a/doDebian.go +++ b/doDebian.go @@ -54,6 +54,11 @@ func doBuildDeb() error { return stat.Err } } + if totalBuilt > 0 { + if _, err := shell.RunRealtimeError([]string{"do-aptly"}); err != nil { + me.sh.BadExit("aptly failed", nil) + } + } return nil } diff --git a/doPublish.go b/doPublish.go index 0c13f55..8624e00 100644 --- a/doPublish.go +++ b/doPublish.go @@ -62,19 +62,6 @@ func doPublish() error { me.sh.BadExit("publishing failed", nil) } - if err := doBuildDeb(); err != nil { - me.sh.BadExit("debian packages failed", err) - } - if totalBuilt > 0 { - if _, err := shell.RunRealtimeError([]string{"do-aptly"}); err != nil { - me.sh.BadExit("aptly failed", nil) - } - } - - if _, err := shell.RunRealtimeError([]string{"forge", "mode", "normal"}); err != nil { - me.sh.BadExit("forge mode normal", err) - } - me.sh.GoodExit("PUBLISH WORKED") return nil } |
