@@ -10,13 +10,11 @@ import (
1010)
1111
1212func main () {
13- draft := flag .Bool ("draft" , false , "create a draft release" )
1413 docker := flag .Bool ("docker" , false , "create a docker release" )
1514 flag .Parse ()
1615
1716 version := os .Getenv ("VERSION" )
1817 sha := os .Getenv ("GITHUB_SHA" )
19- ref := os .Getenv ("GITHUB_REF" )
2018
2119 if version == "" {
2220 cmd := exec .Command ("git" , "show" , "--no-patch" , "--no-notes" , "--pretty=%ci" , sha )
@@ -57,41 +55,5 @@ func main() {
5755 log .Fatalf ("missing platform_arch argument" )
5856 }
5957
60- xname := "./equinox"
61- if _ , err := os .Stat ("./equinox" ); os .IsNotExist (err ) {
62- xname = "equinox"
63- }
64-
65- channel := "devel"
66- if strings .HasPrefix (ref , "refs/tags/" ) {
67- channel = "stable"
68- version = strings .TrimPrefix (ref , "refs/tags/" )
69- }
70-
71- args := []string {"release" ,
72- "--channel" , channel ,
73- "--version" , version ,
74- }
75-
76- if * draft {
77- args = append (args , "--draft" )
78- }
79-
80- x := "-X github.com/kyleconroy/sqlc/internal/cmd.version=" + version
81- args = append (args , []string {
82- "--platforms" , flag .Arg (0 ),
83- "--app" , "app_i4iCp1SuYfZ" ,
84- "--token" , os .Getenv ("EQUINOX_API_TOKEN" ),
85- "--" ,
86- "-ldflags" , x , "./cmd/sqlc" ,
87- }... )
88-
89- log .Printf ("Releasing %s on channel %s" , flag .Arg (0 ), channel )
90- cmd := exec .Command (xname , args ... )
91- cmd .Env = os .Environ ()
92- out , err := cmd .CombinedOutput ()
93- if err != nil {
94- log .Println (strings .TrimSpace (string (out )))
95- log .Fatal (err )
96- }
58+ log .Fatal ("publishing to Equinox has been disabled" )
9759}
0 commit comments