Skip to content

Commit ef01b48

Browse files
chore: enable goreleaser. (#10)
* chore: enable goreleaser. using goreleaser to release. * testing * testing * testing
1 parent 726b4e7 commit ef01b48

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

.github/workflows/release.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- "v*.*.*"
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
goreleaser:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Set up Go
23+
uses: actions/setup-go@v4
24+
with:
25+
go-version: "1.20"
26+
27+
- name: Run GoReleaser
28+
uses: goreleaser/goreleaser-action@v4
29+
with:
30+
distribution: goreleaser
31+
version: latest
32+
args: release --rm-dist
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/bin/
22
/static/bin/
33
/static/helm/*tgz
4+
dist/

.goreleaser.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
project_name: helmbin
2+
release:
3+
github:
4+
owner: replicatedhq
5+
name: helmbin
6+
builds:
7+
- id: helmbin
8+
goos:
9+
- linux
10+
goarch:
11+
- amd64
12+
env:
13+
- CGO_ENABLED=0
14+
hooks:
15+
pre: make static
16+
main: cmd/helmbin/main.go

0 commit comments

Comments
 (0)