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:
parent
40b38fbdc9
commit
097c456a3b
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@ -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
|
||||
|
@ -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
6
scripts/fury-upload.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user