diff --git a/.github/workflows/goreleaser-check.yml b/.github/workflows/goreleaser-check.yml new file mode 100644 index 0000000000..1165cf295c --- /dev/null +++ b/.github/workflows/goreleaser-check.yml @@ -0,0 +1,23 @@ +name: GoReleaser + +on: + - push + +jobs: + goreleaser: + name: check + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.15 + - name: Check GoReleaser config + uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: check diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 6e7152c5ef..30b3cbe1df 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -8,6 +8,7 @@ on: jobs: goreleaser: + name: release runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.goreleaser.yml b/.goreleaser.yml index 2e2bde69b4..7de7fe6d86 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -31,16 +31,14 @@ brews: name: src-cli homepage: "https://sourcegraph.com/" description: "Sourcegraph CLI" - github: + tap: owner: sourcegraph name: homebrew-src-cli # Folder inside the repository to put the formula. # Default is the root folder. folder: Formula dockers: - - binaries: - - src - image_templates: + - image_templates: - "sourcegraph/src-cli:{{ .Tag }}" - "sourcegraph/src-cli:{{ .Major }}" - "sourcegraph/src-cli:{{ .Major }}.{{ .Minor }}"