Skip to content

Commit 86c3c28

Browse files
ci: add goreleaser configuration
1 parent b449453 commit 86c3c28

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

.github/workflows/release.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "Release"
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
goreleaser:
10+
runs-on: "ubuntu-latest"
11+
steps:
12+
- name: "Checkout source code"
13+
uses: "actions/checkout@v2"
14+
with:
15+
fetch-depth: 0
16+
- name: "Set up Go"
17+
uses: "actions/setup-go@v2"
18+
with:
19+
go-version: "1.13"
20+
- name: "Run GoReleaser"
21+
uses: "goreleaser/goreleaser-action@v2"
22+
with:
23+
version: "latest"
24+
args: "release --rm-dist"
25+
env:
26+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
27+

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
dist/
12
helm-sops

.goreleaser.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
project_name: "helm-sops"
2+
3+
before:
4+
hooks:
5+
- "go mod download"
6+
7+
builds:
8+
- binary: "helm-sops"
9+
flags: "-trimpath"
10+
ldflags: "-s -w"
11+
mod_timestamp: "{{ $.CommitTimestamp }}"
12+
env:
13+
- "CGO_ENABLED=0"
14+
15+
release:
16+
prerelease: "auto"
17+
18+
changelog:
19+
filters:
20+
exclude:
21+
- "^(refactor|style|test|docs|ci)(\\([^)]+\\))?(!)?:"

0 commit comments

Comments
 (0)