Skip to content

Commit 615e0d7

Browse files
committed
[CI/CD] Add changelog generation script
- Update modules to latest version
1 parent dfc2d09 commit 615e0d7

5 files changed

Lines changed: 194 additions & 105 deletions

File tree

.github/workflows/release.yml

Lines changed: 35 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,6 @@ on:
55
- "*"
66

77
jobs:
8-
release-server:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- name: Checkout code
12-
uses: actions/checkout@v4
13-
14-
- name: Set up Docker Compose
15-
uses: docker/setup-buildx-action@v3
16-
17-
- name: Build And Tag Image
18-
run: |
19-
docker compose up --build --force-recreate --remove-orphans -d server
20-
docker tag passeriformub/nukeship:latest passeriformub/nukeship:${{ github.ref_name }}
21-
22-
- name: Publish Docker Image
23-
uses: docker/login-action@v3
24-
with:
25-
username: ${{ secrets.DOCKER_USERNAME }}
26-
password: ${{ secrets.DOCKER_PASSWORD }}
27-
28-
- name: Push Docker Image to Docker Hub
29-
run: |
30-
docker push passeriformub/nukeship:${{ github.ref_name }}
31-
docker push passeriformub/nukeship:latest
32-
338
release-binaries:
349
strategy:
3510
fail-fast: false
@@ -61,11 +36,45 @@ jobs:
6136
- name: Generate code
6237
run: go generate ./...
6338

64-
- name: Create binary
39+
- name: Release binary
40+
id: release
6541
uses: passeriform/wails-build-action@main
6642
with:
6743
app-working-directory: pkg/client
6844
build-obfuscate: true
6945
build-name: ${{ matrix.name }}
7046
build-platform: ${{ matrix.platform }}
7147
macos-artifact-name: "NukeShip"
48+
49+
outputs:
50+
release-id: ${{ steps.release.outputs.release-id }}
51+
52+
release-notes:
53+
runs-on: ubuntu-latest
54+
needs: release-binaries
55+
permissions:
56+
contents: write
57+
steps:
58+
- name: Checkout code
59+
uses: actions/checkout@v4
60+
61+
- name: Prepare release notes
62+
id: prepare
63+
working-directory: ${{ github.workspace }}/scripts
64+
run: |
65+
chmod +x *
66+
echo "RELEASE_NOTES<<EOF" >> $GITHUB_OUTPUT
67+
echo "$(./changelog_gen.sh ${{ github.ref_name }})" >> $GITHUB_OUTPUT
68+
echo "EOF" >> $GITHUB_OUTPUT
69+
70+
- name: Test Release Notes
71+
run: echo ${{ steps.prepare.outputs.RELEASE_NOTES }}
72+
73+
- name: Update release notes
74+
uses: irongut/editrelease@v1.2.0
75+
with:
76+
id: ${{ needs.release-binaries.outputs.release-id }}
77+
token: ${{ github.token }}
78+
replacebody: true
79+
name: ${{ github.ref_name }}
80+
body: ${{ steps.prepare.outputs.RELEASE_NOTES }}

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
"thisbeyond",
103103
"tkrajina",
104104
"trivago",
105+
"tubone",
105106
"tweenjs",
106107
"unconvert",
107108
"underef",

go.mod

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ require (
1010
github.com/caarlos0/env/v11 v11.3.1
1111
github.com/jxskiss/mcli v0.9.5
1212
github.com/necmettindev/randomstring v0.1.0
13-
github.com/wailsapp/wails/v2 v2.9.2
14-
google.golang.org/grpc v1.67.1
15-
google.golang.org/protobuf v1.34.2
13+
github.com/wailsapp/wails/v2 v2.10.0
14+
google.golang.org/grpc v1.70.0
15+
google.golang.org/protobuf v1.36.5
1616
)
1717

1818
require (
@@ -22,45 +22,45 @@ require (
2222
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
2323
github.com/bep/debounce v1.2.1 // indirect
2424
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
25-
github.com/go-ole/go-ole v1.2.6 // indirect
25+
github.com/go-ole/go-ole v1.3.0 // indirect
2626
github.com/godbus/dbus/v5 v5.1.0 // indirect
2727
github.com/golang/mock v1.6.0 // indirect
2828
github.com/google/uuid v1.6.0 // indirect
2929
github.com/huandu/xstrings v1.3.3 // indirect
3030
github.com/imdario/mergo v0.3.13 // indirect
3131
github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e // indirect
32-
github.com/labstack/echo/v4 v4.10.2 // indirect
33-
github.com/labstack/gommon v0.4.1 // indirect
34-
github.com/leaanthony/go-ansi-parser v1.6.0 // indirect
35-
github.com/leaanthony/gosod v1.0.3 // indirect
32+
github.com/labstack/echo/v4 v4.13.3 // indirect
33+
github.com/labstack/gommon v0.4.2 // indirect
34+
github.com/leaanthony/go-ansi-parser v1.6.1 // indirect
35+
github.com/leaanthony/gosod v1.0.4 // indirect
3636
github.com/leaanthony/slicer v1.6.0 // indirect
37-
github.com/leaanthony/u v1.1.0 // indirect
38-
github.com/mattn/go-colorable v0.1.13 // indirect
37+
github.com/leaanthony/u v1.1.1 // indirect
38+
github.com/mattn/go-colorable v0.1.14 // indirect
3939
github.com/mattn/go-isatty v0.0.20 // indirect
4040
github.com/mattn/goveralls v0.0.12 // indirect
4141
github.com/mitchellh/copystructure v1.2.0 // indirect
4242
github.com/mitchellh/reflectwalk v1.0.2 // indirect
43-
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect
43+
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
4444
github.com/pkg/errors v0.9.1 // indirect
45-
github.com/rivo/uniseg v0.4.4 // indirect
45+
github.com/rivo/uniseg v0.4.7 // indirect
4646
github.com/russross/blackfriday/v2 v2.1.0 // indirect
47-
github.com/samber/lo v1.38.1 // indirect
47+
github.com/samber/lo v1.49.1 // indirect
4848
github.com/shopspring/decimal v1.2.0 // indirect
4949
github.com/spf13/cast v1.3.1 // indirect
50-
github.com/tkrajina/go-reflector v0.5.6 // indirect
50+
github.com/tkrajina/go-reflector v0.5.8 // indirect
5151
github.com/urfave/cli/v2 v2.26.0 // indirect
5252
github.com/valyala/bytebufferpool v1.0.0 // indirect
5353
github.com/valyala/fasttemplate v1.2.2 // indirect
54-
github.com/wailsapp/go-webview2 v1.0.16 // indirect
54+
github.com/wailsapp/go-webview2 v1.0.19 // indirect
5555
github.com/wailsapp/mimetype v1.4.1 // indirect
5656
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
57-
golang.org/x/crypto v0.26.0 // indirect
58-
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 // indirect
59-
golang.org/x/mod v0.17.0 // indirect
60-
golang.org/x/net v0.28.0 // indirect
61-
golang.org/x/sys v0.24.0 // indirect
62-
golang.org/x/text v0.17.0 // indirect
63-
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
57+
golang.org/x/crypto v0.33.0 // indirect
58+
golang.org/x/mod v0.23.0 // indirect
59+
golang.org/x/net v0.35.0 // indirect
60+
golang.org/x/sync v0.11.0 // indirect
61+
golang.org/x/sys v0.30.0 // indirect
62+
golang.org/x/text v0.22.0 // indirect
63+
golang.org/x/tools v0.30.0 // indirect
6464
golang.org/x/tools/cmd/cover v0.1.0-deprecated // indirect
65-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect
65+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250212204824-5a70512c5d8b // indirect
6666
)

0 commit comments

Comments
 (0)