Skip to content

fetch git tags for GoReleaser #8

fetch git tags for GoReleaser

fetch git tags for GoReleaser #8

Workflow file for this run

name: Test
on:
push:
branches:
- "**"
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.20', '1.21', '1.22' ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- run: go test -v ./...
- name: Fetch all tags
run: git fetch --force --tags
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}