@@ -10,13 +10,11 @@ import (
10
10
)
11
11
12
12
func main () {
13
- draft := flag .Bool ("draft" , false , "create a draft release" )
14
13
docker := flag .Bool ("docker" , false , "create a docker release" )
15
14
flag .Parse ()
16
15
17
16
version := os .Getenv ("VERSION" )
18
17
sha := os .Getenv ("GITHUB_SHA" )
19
- ref := os .Getenv ("GITHUB_REF" )
20
18
21
19
if version == "" {
22
20
cmd := exec .Command ("git" , "show" , "--no-patch" , "--no-notes" , "--pretty=%ci" , sha )
@@ -57,41 +55,5 @@ func main() {
57
55
log .Fatalf ("missing platform_arch argument" )
58
56
}
59
57
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" )
97
59
}
0 commit comments