Skip to content

Commit af6e138

Browse files
authored
Don't publishing using Equinox (#1092)
* Remove equinox GitHub Actions workflow * Remove equinox from docs and release script
1 parent 592a919 commit af6e138

File tree

3 files changed

+1
-104
lines changed

3 files changed

+1
-104
lines changed

.github/workflows/equinox.yml

-56
This file was deleted.

docs/overview/install.md

-9
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,3 @@ Get pre-built binaries for *v1.8.0*:
4242

4343
Binaries for a specific release can be downloaded on
4444
[GitHub](https://github.com/kyleconroy/sqlc/releases).
45-
46-
47-
## Tip Releases
48-
49-
Each commit is deployed to the [`devel` channel on Equinox](https://dl.equinox.io/sqlc/sqlc/devel):
50-
51-
- [Linux](https://bin.equinox.io/c/gvM95th6ps1/sqlc-devel-linux-amd64.tgz)
52-
- [macOS](https://bin.equinox.io/c/gvM95th6ps1/sqlc-devel-darwin-amd64.zip)
53-
- [Windows (MySQL only)](https://bin.equinox.io/c/gvM95th6ps1/sqlc-devel-windows-amd64.zip)

scripts/release.go

+1-39
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ import (
1010
)
1111

1212
func 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

Comments
 (0)