Skip to content

release v0.0.1🎉🎉🎉 #29

release v0.0.1🎉🎉🎉

release v0.0.1🎉🎉🎉 #29

Workflow file for this run

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@v3
- uses: actions/setup-go@v3
with:
go-version: 1.21
cache: true
- uses: sigstore/[email protected]
- uses: anchore/sbom-action/[email protected]
- uses: goreleaser/goreleaser-action@v4
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,apk}; do
curl -F package=@"$filename" https://{$FURY_TOKEN}@push.fury.io/versionfox/
done