Skip to content

Major optimizations and improvements #2

Major optimizations and improvements

Major optimizations and improvements #2

Workflow file for this run

name: Release prom-exporter
on:
push:
branches-ignore:
- '**'
tags:
- 'v*.*.*'
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@master
with:
go-version: 1.21.x
- name: Prepare
id: prepare
run: echo "tag_name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Release
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean --timeout=5m
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.prepare.outputs.tag_name }}