Skip to content

Commit fb1d283

Browse files
committed
feat: add gitrelaser flow
1 parent 8c9184b commit fb1d283

File tree

3 files changed

+64
-1
lines changed

3 files changed

+64
-1
lines changed

.github/workflows/release.yml

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

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ helm/test-values.yaml
1313
*.swp
1414
golangci-lint
1515
atlantis
16-
.devcontainer
16+
.devcontainer
17+
18+
# gitreleaser
19+
dist/

.goreleaser.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
env:
2+
- CGO_ENABLED=0
3+
builds:
4+
- targets:
5+
- darwin_amd64
6+
- darwin_arm64
7+
- linux_386
8+
- linux_amd64
9+
- linux_arm
10+
- linux_arm64
11+
- windows_386
12+
- windows_amd64
13+
14+
archives:
15+
- id: zip
16+
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
17+
format: zip
18+
files:
19+
- none*
20+
21+
checksum:
22+
name_template: 'checksums.txt'
23+
24+
changelog:
25+
skip: true
26+
27+
release:
28+
github:
29+
owner: runatlantis
30+
name: atlantis
31+
draft: true
32+
33+
snapshot:
34+
name_template: "{{ incpatch .Version }}-next"

0 commit comments

Comments
 (0)