Skip to content

release: update Go dependencies and vendor modules (#172) #19

release: update Go dependencies and vendor modules (#172)

release: update Go dependencies and vendor modules (#172) #19

Workflow file for this run

# .github/workflows/release.yml
---
name: release
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: stable
- name: Declare some variables
shell: bash
run: |
echo "GITHUB_SHA_SHORT=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
# 'latest', 'nightly', or a semver
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILD: ${{ env.GITHUB_SHA_SHORT }}