Skip to content

build(deps): bump github.com/prometheus/client_golang #51

build(deps): bump github.com/prometheus/client_golang

build(deps): bump github.com/prometheus/client_golang #51

Workflow file for this run

name: release
on:
push:
branches:
- main
pull_request:
permissions:
contents: write # create releases
packages: write # push to ghcr
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: WillAbides/[email protected]
with:
go-version: ^1.21.5
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: go-semantic-release/action@v1
with:
allow-initial-development-versions: true
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: go mod download -x
- name: Define goreleaser flags
run: test -n "$(git tag --points-at HEAD)" || echo "GORELEASER_FLAGS=--snapshot" >> $GITHUB_ENV
- uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean ${{ env.GORELEASER_FLAGS }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}