-
-
Notifications
You must be signed in to change notification settings - Fork 148
45 lines (41 loc) · 1.16 KB
/
go-releaser.yml
File metadata and controls
45 lines (41 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: goreleaser
on:
push:
tags: [ 'v*' ]
permissions:
contents: write
id-token: write
packages: write
jobs:
release:
runs-on: ubuntu-latest
env:
flags: ""
steps:
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
run: echo "flags=--snapshot" >> $GITHUB_ENV
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: '1.23'
cache: true
- uses: sigstore/cosign-installer@v3.10.1
- uses: anchore/sbom-action/download-syft@v0.23.0
- uses: goreleaser/goreleaser-action@v7
with:
distribution: goreleaser
version: latest
args: release --clean ${{ env.flags }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COSIGN_PWD: ${{ secrets.COSIGN_PWD }}
HOMEBREW_TOKEN: ${{ secrets.HOMEBREW_TOKEN}}
- name: Publish rpm to Gemfury
env:
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
run: |
for filename in dist/vfox*.{rpm,deb}; do
curl -F package=@"$filename" https://{$FURY_TOKEN}@push.fury.io/versionfox/
done