Skip to content

Commit cfad207

Browse files
authored
Merge pull request #92 from maxmind/greg/eng-1525-beta-of-mmdbinspect-2-is-released
Release v2 beta
2 parents af0b33f + e933ab5 commit cfad207

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

.goreleaser.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ before:
1010

1111
builds:
1212
- id: 'mmdbinspect'
13-
main: './cmd/mmdbinspect/main.go'
13+
main: './cmd/mmdbinspect/'
1414
binary: 'mmdbinspect'
1515
goos:
1616
- 'darwin'
@@ -27,7 +27,8 @@ archives:
2727
wrap_in_directory: true
2828
format_overrides:
2929
- goos: windows
30-
format: zip
30+
formats:
31+
- zip
3132
files:
3233
- 'CHANGELOG.md'
3334
- 'LICENSE-APACHE'
@@ -38,7 +39,7 @@ checksum:
3839
name_template: 'checksums.txt'
3940

4041
snapshot:
41-
name_template: "{{ .Tag }}-next"
42+
version_template: "{{ .Tag }}-next"
4243

4344
changelog:
4445
disable: true

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# CHANGELOG
22

3-
## 2.0.0
3+
## 2.0.0-beta.2 (2025-03-11)
4+
5+
* Fixes for the release scripts. No other changes.
6+
7+
## 2.0.0-beta.1 (2025-03-11)
48

59
* The default output format is now YAML. This was done to improve the
610
readability when using the tool as a standalone utility for doing lookups

dev-bin/release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -eu -o pipefail
55
changelog=$(cat CHANGELOG.md)
66

77
regex='
8-
## ([0-9]+\.[0-9]+\.[0-9]+) \(([0-9]{4}-[0-9]{2}-[0-9]{2})\)
8+
## ([0-9]+\.[0-9]+\.[0-9]+(-[^ ]+)?) \(([0-9]{4}-[0-9]{2}-[0-9]{2})\)
99
1010
((.|
1111
)*)
@@ -17,8 +17,8 @@ if [[ ! $changelog =~ $regex ]]; then
1717
fi
1818

1919
version="${BASH_REMATCH[1]}"
20-
date="${BASH_REMATCH[2]}"
21-
notes="$(echo "${BASH_REMATCH[3]}" | sed -n -E '/^## [0-9]+\.[0-9]+\.[0-9]+/,$!p')"
20+
date="${BASH_REMATCH[3]}"
21+
notes="$(echo "${BASH_REMATCH[4]}" | sed -n -E '/^## [0-9]+\.[0-9]+\.[0-9]+(-[^ ]+)?/,$!p')"
2222
tag="v$version"
2323

2424
if [[ "$date" != "$(date +"%Y-%m-%d")" ]]; then

0 commit comments

Comments
 (0)