From 7eaad1ddc748790fb39ae32b9af77170f1735ae1 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Thu, 22 Jul 2021 19:02:01 -0700 Subject: [PATCH 1/2] Remove equinox GitHub Actions workflow --- .github/workflows/equinox.yml | 56 ----------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 .github/workflows/equinox.yml diff --git a/.github/workflows/equinox.yml b/.github/workflows/equinox.yml deleted file mode 100644 index f8521ffa41..0000000000 --- a/.github/workflows/equinox.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: equinox - -on: - push: - branches: - - master - -jobs: - - windows: - name: release --platforms windows - runs-on: windows-latest - steps: - - uses: actions/checkout@v2.3.4 - - uses: actions/setup-go@v2 - with: - go-version: '1.16' - - uses: equinox-io/setup-release-tool@v1.1.0 - - name: equinox release - env: - EQUINOX_API_TOKEN: ${{ secrets.EQUINOX_API_TOKEN }} - EQUINOX_SIGNING_KEY: ${{ secrets.EQUINOX_SIGNING_KEY }} - run: go run scripts/release.go -draft windows_amd64 - - macos: - name: release --platforms darwin - runs-on: macos-latest - steps: - - uses: actions/checkout@v2.3.4 - - uses: actions/setup-go@v2 - with: - go-version: '1.16' - - uses: equinox-io/setup-release-tool@v1.1.0 - - name: equinox release - env: - EQUINOX_API_TOKEN: ${{ secrets.EQUINOX_API_TOKEN }} - EQUINOX_SIGNING_KEY: ${{ secrets.EQUINOX_SIGNING_KEY }} - run: go run scripts/release.go -draft darwin_amd64 - - linux: - name: release --platforms linux - runs-on: ubuntu-latest - needs: [macos, windows] - steps: - - uses: actions/checkout@v2.3.4 - - uses: actions/setup-go@v2 - with: - go-version: '1.16' - - uses: equinox-io/setup-release-tool@v1.1.0 - - name: equinox release - env: - EQUINOX_API_TOKEN: ${{ secrets.EQUINOX_API_TOKEN }} - EQUINOX_SIGNING_KEY: ${{ secrets.EQUINOX_SIGNING_KEY }} - run: go run scripts/release.go linux_amd64 - - From 1b7676b06f0dafac8f04658781c286313099f9b2 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Thu, 22 Jul 2021 19:05:46 -0700 Subject: [PATCH 2/2] Remove equinox from docs and release script --- docs/overview/install.md | 9 --------- scripts/release.go | 40 +--------------------------------------- 2 files changed, 1 insertion(+), 48 deletions(-) diff --git a/docs/overview/install.md b/docs/overview/install.md index e27c7a9685..34580cb549 100644 --- a/docs/overview/install.md +++ b/docs/overview/install.md @@ -42,12 +42,3 @@ Get pre-built binaries for *v1.8.0*: Binaries for a specific release can be downloaded on [GitHub](https://github.com/kyleconroy/sqlc/releases). - - -## Tip Releases - -Each commit is deployed to the [`devel` channel on Equinox](https://dl.equinox.io/sqlc/sqlc/devel): - -- [Linux](https://bin.equinox.io/c/gvM95th6ps1/sqlc-devel-linux-amd64.tgz) -- [macOS](https://bin.equinox.io/c/gvM95th6ps1/sqlc-devel-darwin-amd64.zip) -- [Windows (MySQL only)](https://bin.equinox.io/c/gvM95th6ps1/sqlc-devel-windows-amd64.zip) diff --git a/scripts/release.go b/scripts/release.go index 125f02d8b8..ee02dc5559 100755 --- a/scripts/release.go +++ b/scripts/release.go @@ -10,13 +10,11 @@ import ( ) func main() { - draft := flag.Bool("draft", false, "create a draft release") docker := flag.Bool("docker", false, "create a docker release") flag.Parse() version := os.Getenv("VERSION") sha := os.Getenv("GITHUB_SHA") - ref := os.Getenv("GITHUB_REF") if version == "" { cmd := exec.Command("git", "show", "--no-patch", "--no-notes", "--pretty=%ci", sha) @@ -57,41 +55,5 @@ func main() { log.Fatalf("missing platform_arch argument") } - xname := "./equinox" - if _, err := os.Stat("./equinox"); os.IsNotExist(err) { - xname = "equinox" - } - - channel := "devel" - if strings.HasPrefix(ref, "refs/tags/") { - channel = "stable" - version = strings.TrimPrefix(ref, "refs/tags/") - } - - args := []string{"release", - "--channel", channel, - "--version", version, - } - - if *draft { - args = append(args, "--draft") - } - - x := "-X github.com/kyleconroy/sqlc/internal/cmd.version=" + version - args = append(args, []string{ - "--platforms", flag.Arg(0), - "--app", "app_i4iCp1SuYfZ", - "--token", os.Getenv("EQUINOX_API_TOKEN"), - "--", - "-ldflags", x, "./cmd/sqlc", - }...) - - log.Printf("Releasing %s on channel %s", flag.Arg(0), channel) - cmd := exec.Command(xname, args...) - cmd.Env = os.Environ() - out, err := cmd.CombinedOutput() - if err != nil { - log.Println(strings.TrimSpace(string(out))) - log.Fatal(err) - } + log.Fatal("publishing to Equinox has been disabled") }