Another feature
Some checks failed
release / release (push) Failing after 15s

This commit is contained in:
Tim Basten
2026-02-06 11:44:04 +08:00
parent 307c1bb715
commit 5dd6aeb737
2 changed files with 22 additions and 3 deletions

View File

@@ -13,12 +13,14 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: setup go
uses: https://github.com/actions/setup-go@v4
with:
go-version: '>=1.20.1'
- name: Install go-gitea/changelog - name: Install go-gitea/changelog
run: | run: |
wget https://github.com/go-gitea/changelog/releases/latest/download/changelog-linux-amd64 go get github.com/go-gitea/changelog
chmod +x changelog-linux-amd64
sudo mv changelog-linux-amd64 /usr/local/bin/changelog
- name: Generate changelog - name: Generate changelog
id: changelog id: changelog

17
release Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -e
VERSION="$1"
MESSAGE="$2"
if [ -z "$VERSION" ] || [ -z "$MESSAGE" ]; then
echo "Usage: $0 <version> <commit message>"
exit 1
fi
git add .
git commit -m "$MESSAGE"
git tag -a "$VERSION" -m "$VERSION"
git push
git push --tags