Skip to content

Commit cc4515a

Browse files
committed
[CI/CD] Add changelog generation script
1 parent dfc2d09 commit cc4515a

5 files changed

Lines changed: 184 additions & 108 deletions

File tree

.github/workflows/release.yml

Lines changed: 30 additions & 32 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
@@ -38,12 +13,12 @@ jobs:
3813
- name: NukeShip
3914
os: ubuntu-latest
4015
platform: linux/amd64
41-
- name: NukeShip.exe
42-
os: windows-latest
43-
platform: windows/amd64
44-
- name: nukeship
45-
os: macos-latest
46-
platform: darwin/universal
16+
# - name: NukeShip.exe
17+
# os: windows-latest
18+
# platform: windows/amd64
19+
# - name: nukeship
20+
# os: macos-latest
21+
# platform: darwin/universal
4722
runs-on: ${{ matrix.os }}
4823
permissions:
4924
contents: write
@@ -61,11 +36,34 @@ jobs:
6136
- name: Generate code
6237
run: go generate ./...
6338

64-
- name: Create binary
39+
- name: Release binary
6540
uses: passeriform/wails-build-action@main
6641
with:
6742
app-working-directory: pkg/client
6843
build-obfuscate: true
6944
build-name: ${{ matrix.name }}
7045
build-platform: ${{ matrix.platform }}
7146
macos-artifact-name: "NukeShip"
47+
wails-version: v2.9.2
48+
49+
release-notes:
50+
runs-on: ubuntu-latest
51+
needs: release-binaries
52+
permissions:
53+
contents: write
54+
steps:
55+
- name: Checkout code
56+
uses: actions/checkout@v4
57+
with:
58+
fetch-depth: 0
59+
fetch-tags: true
60+
61+
- name: Prepare release notes
62+
run: |
63+
chmod +x scripts/*
64+
./scripts/changelog_gen.sh ${{ github.ref_name }} > RELEASE.md
65+
66+
- name: Update release notes
67+
env:
68+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
run: gh release edit ${{ github.ref_name }} --notes-file RELEASE.md

.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: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ require (
1111
github.com/jxskiss/mcli v0.9.5
1212
github.com/necmettindev/randomstring v0.1.0
1313
github.com/wailsapp/wails/v2 v2.9.2
14-
google.golang.org/grpc v1.67.1
15-
google.golang.org/protobuf v1.34.2
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)