Skip to content

actions/checkout@v4

actions/checkout@v4 #8

Workflow file for this run

name: Release
on:
push:
tags:
- v*
workflow_dispatch: {}
permissions:
contents: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch Git tags
run: git fetch --force --tags
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21.0 # datasource=github-releases depName=golang/go
- name: Goreleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: 1.20.0 # datasource=github-releases depName=goreleaser/goreleaser
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}