From 89f2c0bdf2779fa1adda1c87cc84846890cf4edd Mon Sep 17 00:00:00 2001 From: Simone Carletti Date: Mon, 24 Aug 2026 11:01:14 +0200 Subject: [PATCH] Publish release artifacts only to dnsimple/cli The homebrew-tap release mirror existed because the cli repository was private. The repository is public now, so the mirror only duplicates the release that GoReleaser already publishes to dnsimple/cli. Remove the mirror publishing step, drop the formula url_template override, and point the install scripts at the dnsimple/cli releases. The tap token stays: the formula commit still needs it. --- .github/workflows/release.yml | 16 ---------------- .goreleaser.yaml | 3 --- CHANGELOG.md | 4 ++++ README.md | 6 +++--- RELEASING.md | 1 - install.ps1 | 2 +- install.sh | 4 ++-- 7 files changed, 10 insertions(+), 26 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 11477d5..cc01be7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,19 +46,3 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.tap_token.outputs.token }} - - - name: Publish public release assets to homebrew-tap - env: - GH_TOKEN: ${{ steps.tap_token.outputs.token }} - run: | - tag="${GITHUB_REF#refs/tags/}" - dist="dist" - - gh release create "${tag}" \ - --repo dnsimple/homebrew-tap \ - --title "${tag}" \ - --notes-file /tmp/release-notes.md - - gh release upload "${tag}" \ - --repo dnsimple/homebrew-tap \ - "${dist}"/*.tar.gz "${dist}"/*.zip "${dist}"/checksums.txt diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 55ac6b2..e6962c1 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -44,9 +44,6 @@ brews: # that requires verified signatures. commit_author: use_github_app_token: true - # Release artifacts remain public on the homebrew-tap releases page - # while the cli repo itself is private. - url_template: "https://github.com/dnsimple/homebrew-tap/releases/download/v{{ .Version }}/{{ .ArtifactName }}" homepage: "https://dnsimple.com" description: "DNSimple command-line tool." license: "MIT" diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e45bf8..1340fbe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ This project uses [Semantic Versioning 2.0.0](http://semver.org/), the format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## Unreleased + +- Release artifacts are published only to `dnsimple/cli`. The `dnsimple/homebrew-tap` release mirror is removed, and the install scripts and the Homebrew formula now download from `dnsimple/cli`. + ## 0.10.0 - 2026-06-15 ### Changed diff --git a/README.md b/README.md index 4d21852..78a6cbd 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ curl -fsSL http://cli-beta.dnsimple.com/install.sh | sh The install URL will eventually move to `https://dnsimple.com/install.sh`. -The install script downloads release artifacts from the public `dnsimple/homebrew-tap` release mirror. +The install script downloads release artifacts from the `dnsimple/cli` releases. ### Windows @@ -30,11 +30,11 @@ The install script downloads release artifacts from the public `dnsimple/homebre irm "https://cli-beta.dnsimple.com/install.ps1" | iex ``` -The installer downloads release artifacts from the public `dnsimple/homebrew-tap` release mirror. +The installer downloads release artifacts from the `dnsimple/cli` releases. #### Manual ZIP install -1. Download the latest `dnsimple__windows_amd64.zip` or `dnsimple__windows_arm64.zip` from the [public release mirror](https://github.com/dnsimple/homebrew-tap/releases/latest) page. +1. Download the latest `dnsimple__windows_amd64.zip` or `dnsimple__windows_arm64.zip` from the [latest release](https://github.com/dnsimple/cli/releases/latest) page. 2. Extract `dnsimple.exe`. 3. Move `dnsimple.exe` to a directory on your `PATH`, such as `%USERPROFILE%\bin`. 4. Open a new terminal window and verify the installation: diff --git a/RELEASING.md b/RELEASING.md index 3bf595a..509f922 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -55,6 +55,5 @@ This document describes the steps to release a new version of DNSimple/CLI. ## Post-release - Verify the GitHub release was created in `dnsimple/cli` -- Verify the public release mirror was updated in `dnsimple/homebrew-tap` - Verify the Homebrew formula was updated in `dnsimple/homebrew-tap` - Announce the release if necessary diff --git a/install.ps1 b/install.ps1 index 8456cc7..119130b 100644 --- a/install.ps1 +++ b/install.ps1 @@ -40,7 +40,7 @@ param ( $ErrorActionPreference = "Stop" -$Repo = "dnsimple/homebrew-tap" +$Repo = "dnsimple/cli" $ExeName = "dnsimple.exe" function Write-Step { diff --git a/install.sh b/install.sh index 0eea629..1a7effe 100755 --- a/install.sh +++ b/install.sh @@ -8,7 +8,7 @@ # Examples: # # curl -fsSL https://raw.githubusercontent.com/dnsimple/cli/main/install.sh | sh -# curl -fsSL .../install.sh | sh -s -- --base-url https://github.com/dnsimple/homebrew-tap/releases +# curl -fsSL .../install.sh | sh -s -- --base-url https://github.com/dnsimple/cli/releases set -e @@ -19,7 +19,7 @@ YELLOW="$(tput setaf 3 2>/dev/null || printf '')" BLUE="$(tput setaf 4 2>/dev/null || printf '')" NO_COLOR="$(tput sgr0 2>/dev/null || printf '')" -DEFAULT_BASE_URL="https://github.com/dnsimple/homebrew-tap/releases" +DEFAULT_BASE_URL="https://github.com/dnsimple/cli/releases" BINARY_NAME="dnsimple" info() {