diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9c1ca96ed..88f1c91f2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -202,3 +202,28 @@ jobs: tag: ${{ steps.versioning.outputs.version }} prerelease: ${{ github.ref != 'refs/heads/main' }} bodyFile: 'cli/bin/README.md' + + goreleaser: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Fetch all tags + run: git fetch --force --tags + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.17 + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + distribution: goreleaser + version: ${{ env.GITHUB_REF_NAME }} + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.PUBLISHER_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 000000000..6820b8dc1 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,9 @@ +brews: + - name: kubeshark + homepage: https://github.com/kubeshark/kubeshark + tap: + owner: kubeshark + name: homebrew-kubeshark + commit_author: + name: mertyildiran + email: me@mertyildiran.com