1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-27 01:33:39 +02:00

chore(ci): publish to fury

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos A Becker 2021-06-21 02:26:17 +00:00
parent 40b38fbdc9
commit 097c456a3b
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
3 changed files with 15 additions and 0 deletions

View File

@ -94,6 +94,7 @@ jobs:
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
run: |
if [[ $GITHUB_REF == refs/tags/v* ]]; then
./goreleaser

View File

@ -126,6 +126,7 @@ scoop:
license: MIT
nfpms:
- file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
id: packages
homepage: https://goreleaser.com
description: Deliver Go binaries as fast and easily as possible
maintainer: Carlos Alexandro Becker <root@carlosbecker.com>
@ -156,6 +157,13 @@ snapcrafts:
grade: stable
confinement: classic
publish: true
publishers:
- name: fury.io
ids:
- packages
cmd: ./scripts/fury-upload.sh {{ .ArtifactName }}
release:
discussion_category_name: Announcements
footer: |

6
scripts/fury-upload.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
if [ "${1: -4}" == ".deb" ] || [ "${1: -4}" == ".rpm" ]; then
cd dist
curl -F package="@$1" "https://$FURY_TOKEN@push.fury.io/goreleaser/"
fi