Skip to content

Commit 0fcc2b0

Browse files
committed
Add goreleaser config file
1 parent b704800 commit 0fcc2b0

File tree

3 files changed

+60
-2
lines changed

3 files changed

+60
-2
lines changed

Diff for: .github/workflows/release.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
goreleaser:
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- name: Checkout
13+
uses: actions/[email protected]
14+
- name: Unshallow
15+
run: git fetch --prune --unshallow
16+
- name: Set up Go
17+
uses: actions/setup-go@v3
18+
with:
19+
go-version: 1.18
20+
- name: Run GoReleaser
21+
uses: goreleaser/[email protected]
22+
with:
23+
version: latest
24+
args: release --rm-dist
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GH_PUBLISH_SECRETS }}

Diff for: .goreleaser.yaml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This is an example .goreleaser.yml file with some sensible defaults.
2+
# Make sure to check the documentation at https://goreleaser.com
3+
before:
4+
hooks:
5+
# You may remove this if you don't use go modules.
6+
- go mod tidy
7+
builds:
8+
- env:
9+
- CGO_ENABLED=0
10+
binary: atest
11+
dir: cmd
12+
goos:
13+
- linux
14+
- windows
15+
- darwin
16+
archives:
17+
- name_template: "{{ .Binary }}-{{ .Os }}-{{ .Arch }}"
18+
format_overrides:
19+
- goos: windows
20+
format: zip
21+
files:
22+
- README.md
23+
checksum:
24+
name_template: 'checksums.txt'
25+
snapshot:
26+
name_template: "{{ incpatch .Version }}-next"
27+
changelog:
28+
sort: asc
29+
filters:
30+
exclude:
31+
- '^docs:'
32+
- '^test:'

Diff for: action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: 'API testing'
2-
description: 'API testing'
1+
name: 'API testing with Kubernetes'
2+
description: 'API testing with Kubernetes'
33
inputs:
44
pattern:
55
description: 'The pattern of the items'

0 commit comments

Comments
 (0)