Skip to content

Commit 28e5f91

Browse files
committed
Add Goreleaser-based release workflow and update license docs
1 parent 4ae1df7 commit 28e5f91

File tree

3 files changed

+78
-2
lines changed

3 files changed

+78
-2
lines changed

.github/workflows/release.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-and-release:
11+
name: Build and Publish Release Artifacts
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Set up Go
23+
uses: actions/setup-go@v5
24+
with:
25+
go-version-file: go.mod
26+
cache: true
27+
28+
- name: Run Goreleaser
29+
uses: goreleaser/goreleaser-action@v6
30+
with:
31+
distribution: goreleaser
32+
version: latest
33+
args: release --clean
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+

.goreleaser.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
project_name: uptime-kuma-gchat-proxy
2+
3+
before:
4+
hooks:
5+
- go mod tidy
6+
7+
builds:
8+
- id: binaries
9+
binary: uptime-kuma-gchat-proxy
10+
env:
11+
- CGO_ENABLED=0
12+
goos:
13+
- linux
14+
goarch:
15+
- amd64
16+
- arm64
17+
goarm:
18+
- "7"
19+
flags:
20+
- -trimpath
21+
ldflags:
22+
- -s -w
23+
24+
archives:
25+
- id: default
26+
builds:
27+
- binaries
28+
replacements:
29+
amd64: x86_64
30+
31+
checksum:
32+
name_template: "{{ .ProjectName }}_checksums.txt"
33+
34+
changelog:
35+
use: git
36+

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[![Forks][forks-shield]][forks-url]
33
[![Stargazers][stars-shield]][stars-url]
44
[![Issues][issues-shield]][issues-url]
5-
[![MIT License][license-shield]][license-url]
5+
[![GPLv3 License][license-shield]][license-url]
66

77
<div align="center">
88

@@ -338,7 +338,11 @@ docker build -t uptime-kuma-gchat-proxy .
338338

339339
## License
340340

341-
uptime-kuma-gchat-proxy is licensed under MIT. See [LICENSE](LICENSE) file for details.
341+
This project is released under the GNU General Public License v3.0.
342+
343+
- You may run, study, share, and modify the software, provided derivative works remain GPL-compatible.
344+
- Source code for any distributed binaries must be made available to recipients.
345+
- The software is provided “as is”, without warranty; see [`LICENSE`](LICENSE) for the full text.
342346

343347
[contributors-shield]: https://img.shields.io/github/contributors/monobilisim/uptime-kuma-gchat-proxy.svg?style=for-the-badge
344348
[contributors-url]: https://github.com/monobilisim/uptime-kuma-gchat-proxy/graphs/contributors

0 commit comments

Comments
 (0)