diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1fa763b..95e7f30 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v3 with: - fetch-depth: '0' + fetch-depth: "0" - name: Bump version and push tag uses: anothrNick/github-tag-action@1.64.0 @@ -28,7 +28,7 @@ jobs: goreleaser: runs-on: ubuntu-latest - needs: [ tag ] + needs: [tag] steps: - name: Checkout @@ -49,3 +49,4 @@ jobs: args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_HOMEBREW_TAP_AUTH_TOKEN: ${{ secrets.GITHUB_HOMEBREW_TAP_AUTH_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 23b06da..ab3469e 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -45,6 +45,24 @@ archives: {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} +brews: + - + name: cli + url_template: "https://github.com/ThreeDotsLabs/cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}" + commit_author: + name: goreleaserbot + email: bot@goreleaser.com + commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" + homepage: "https://academy.threedots.tech/" + description: "This is the tdl CLI tool used for running the interactive trainings on the https://academy.threedots.tech/" + custom_block: | + head "https://github.com/ThreeDotsLabs/cli.git" + repository: + owner: ThreeDotsLabs + name: homebrew-tap + branch: main + token: "{{ .Env.GITHUB_HOMEBREW_TAP_AUTH_TOKEN }}" + checksum: name_template: 'checksums.txt' snapshot: