diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ec8f71dd41..fb985012b2 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -58,6 +58,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} AUR_KEY: ${{ secrets.AUR_KEY }} + FURY_TOKEN: ${{ secrets.FURY_TOKEN }} GORELEASER_GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }} doc: diff --git a/.goreleaser.yml b/.goreleaser.yml index 2dfffba893..c070dcf413 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -75,3 +75,9 @@ nfpms: - apk - deb - rpm + +publishers: + - name: fury + cmd: "bash -c \"[[ {{.ArtifactPath}} =~ ^.*.(deb|rpm)$ ]] && curl -F package=@{{abs .ArtifactPath}} https://$FURY_TOKEN@push.fury.io/rsteube/ || true\"" + env: + - FURY_TOKEN={{ .Env.FURY_TOKEN }}