Skip to content

Commit 4e656f2

Browse files
committed
Update release workflow to fetch full Git history
Modify GitHub Actions release workflow to fetch entire Git history by setting fetch-depth to 0 Signed-off-by: Denis Arslanbekov <denis@arslanbekov.com>
1 parent f363597 commit 4e656f2

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
1315

1416
- name: Set up Go
1517
uses: actions/setup-go@v5

.goreleaser.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
builds:
2+
- skip: true
3+
4+
release:
5+
github:
6+
owner: openvpn
7+
name: cloudconnexa-go-client
8+
9+
archives:
10+
- format: tar.gz
11+
name_template: >-
12+
{{ .ProjectName }}_
13+
{{- title .Os }}_
14+
{{- if eq .Arch "amd64" }}x86_64
15+
{{- else if eq .Arch "386" }}i386
16+
{{- else }}{{ .Arch }}{{ end }}
17+
format_overrides:
18+
- goos: windows
19+
format: zip
20+
21+
checksum:
22+
name_template: "checksums.txt"
23+
24+
changelog:
25+
sort: asc
26+
filters:
27+
exclude:
28+
- "^docs:"
29+
- "^test:"
30+
- "^ci:"
31+
- Merge pull request
32+
- Merge branch

0 commit comments

Comments
 (0)