go-test-color/.github/workflows/goreleaser.yaml

30 lines
564 B
YAML
Raw Normal View History

2022-04-13 08:26:32 +00:00
name: goreleaser
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
2022-07-23 16:09:47 +00:00
- uses: actions/checkout@v3
2022-04-13 08:26:32 +00:00
with:
fetch-depth: 0
2022-07-23 16:09:47 +00:00
- uses: actions/setup-go@v3
2022-04-13 08:26:32 +00:00
with:
2023-02-21 09:59:05 +00:00
go-version: "1.20"
2022-07-23 16:09:47 +00:00
check-latest: true
cache: true
2022-04-13 08:26:32 +00:00
- uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}