Skip to content

Commit 94da258

Browse files
committed
ci: fix git-chglog install breaks
1 parent 493a131 commit 94da258

File tree

2 files changed

+30
-24
lines changed

2 files changed

+30
-24
lines changed

.github/workflows/goreleaser.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ jobs:
1818
- name: Install Go
1919
uses: actions/setup-go@v2
2020
with:
21-
go-version: 1.15.x
21+
go-version: 1.16.x
2222
- name: Generate CHANGELOG.md
2323
run: |
24-
GO111MODULE=off go get -u github.com/git-chglog/git-chglog/cmd/git-chglog
24+
cd; GO111MODULE=on go get -u github.com/git-chglog/git-chglog/cmd/git-chglog
25+
cd $GITHUB_WORKSPACE
2526
git-chglog --config .ci/git-chglog.yml --output=CHANGELOG.md $(git describe --tags $(git rev-list --tags --max-count=1))
2627
- name: Run GoReleaser
2728
uses: goreleaser/goreleaser-action@v2

.goreleaser.yml

+27-22
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
1+
archives:
2+
- format_overrides:
3+
- goos: windows
4+
format: zip
5+
16
before:
27
hooks:
3-
- make clean
8+
- make clean
49

510
builds:
611
- env:
7-
- CGO_ENABLED=0
12+
- CGO_ENABLED=0
813
ldflags:
9-
- -s -w
10-
- -X github.com/groupe-edf/watchdog/internal/version.Version={{.Tag}}
11-
- -X github.com/groupe-edf/watchdog/internal/version.BuildDate={{.Date}}
12-
- -X github.com/groupe-edf/watchdog/internal/version.Commit={{.FullCommit}}
13-
- -X github.com/groupe-edf/watchdog/internal/version.Sha={{.ShortCommit}}
14+
- -s -w
15+
- -X github.com/groupe-edf/watchdog/internal/version.Version={{.Tag}}
16+
- -X github.com/groupe-edf/watchdog/internal/version.BuildDate={{.Date}}
17+
- -X github.com/groupe-edf/watchdog/internal/version.Commit={{.FullCommit}}
18+
- -X github.com/groupe-edf/watchdog/internal/version.Sha={{.ShortCommit}}
1419
goos:
15-
- darwin
16-
- linux
17-
- windows
20+
- darwin
21+
- linux
22+
- windows
1823
goarch:
19-
- amd64
24+
- amd64
2025
mod_timestamp: "{{ .CommitTimestamp }}"
2126

2227
changelog:
@@ -28,17 +33,17 @@ checksum:
2833
dist: target
2934

3035
nfpms:
31-
- homepage: https://github.com/groupe-edf/watchdog
32-
maintainer: Habib MAALEM <[email protected]>
33-
description: Git server-side Custom Hooks
34-
vendor: watchdog
35-
license: GPL
36-
formats:
37-
- apk
38-
- deb
39-
- rpm
40-
empty_folders:
41-
- /var/log/watchdog
36+
- homepage: https://github.com/groupe-edf/watchdog
37+
maintainer: Habib MAALEM <[email protected]>
38+
description: Git server-side Custom Hooks
39+
vendor: watchdog
40+
license: GPL
41+
formats:
42+
- apk
43+
- deb
44+
- rpm
45+
empty_folders:
46+
- /var/log/watchdog
4247

4348
project_name: watchdog
4449

0 commit comments

Comments
 (0)