forked from kubernetes-sigs/cli-utils
-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (34 loc) · 797 Bytes
/
main.yml
File metadata and controls
37 lines (34 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 2020 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
name: goreleaser
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
goreleaser:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
cache-dependency-path: |
**/go.sum
**/go.mod
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --rm-dist -f release/goreleaser.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}