7 Commits

Author SHA1 Message Date
Tim Basten
1b65438e71 feature: This is a mega update
All checks were successful
release / release (push) Successful in 7s
2026-02-06 12:09:48 +08:00
Tim Basten
bbaf5af45c feature: This is a mega update
All checks were successful
release / release (push) Successful in 7s
2026-02-06 12:04:24 +08:00
Tim Basten
3ae14fb1fd Another feature
All checks were successful
release / release (push) Successful in 7s
2026-02-06 11:52:18 +08:00
Tim Basten
5dd6aeb737 Another feature
Some checks failed
release / release (push) Failing after 15s
2026-02-06 11:44:04 +08:00
Tim Basten
307c1bb715 your message
Some checks failed
release / release (push) Failing after 5s
2026-02-06 11:39:23 +08:00
Tim Basten
22e64b6dec feature: add changelog builder
Some checks failed
release / release (push) Failing after 18s
2026-02-06 11:32:23 +08:00
873a4c5237 feature: test-feature 1 (#2)
All checks were successful
release / release (push) Successful in 4s
This feature introduces cool stuff
2026-02-06 11:27:01 +08:00
4 changed files with 94 additions and 3 deletions

View File

@@ -13,6 +13,25 @@ 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
run: |
wget https://dl.gitea.com/changelog-tool/main/changelog-main-linux-amd64
chmod +x changelog-main-linux-amd64
sudo mv changelog-main-linux-amd64 /usr/local/bin/changelog
- name: Generate changelog
id: changelog
run: |
VERSION="${GITHUB_REF_NAME}"
changelog generate -m="${VERSION}" -c="${GITHUB_WORKSPACE}/changelog.yml" > CHANGELOG.md
echo "changelog<<EOF" >> $GITHUB_OUTPUT
cat CHANGELOG.md >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create Gitea Release - name: Create Gitea Release
uses: akkuman/gitea-release-action@v1 uses: akkuman/gitea-release-action@v1
@@ -20,5 +39,4 @@ jobs:
token: ${{ secrets.GITEA_TOKEN }} token: ${{ secrets.GITEA_TOKEN }}
tag_name: ${{ gitea.ref_name }} tag_name: ${{ gitea.ref_name }}
name: ${{ gitea.ref_name }} name: ${{ gitea.ref_name }}
body: "Automated release" body: ${{ steps.changelog.outputs.changelog }}

56
changelog.yml Normal file
View File

@@ -0,0 +1,56 @@
repo: timmybee/test-release-merging
service: gitea
base-url: https://git.timmybee.xyz
groups:
-
name: BREAKING
labels:
- pr/breaking
-
name: FEATURES
labels:
- type/feature
-
name: API
labels:
- modifies/api
-
name: BUGFIXES
labels:
- type/bug
-
name: ENHANCEMENTS
labels:
- type/enhancement
- type/refactoring
- topic/ui
- topic/ui-interaction
- performance/speed
-
name: SECURITY
labels:
- topic/security
-
name: TESTING
labels:
- type/testing
-
name: TRANSLATION
labels:
- modifies/translation
-
name: BUILD
labels:
- topic/build
- topic/code-linting
-
name: DOCS
labels:
- type/docs
- modifies/docs
-
name: MISC
default: true
# regex indicating which labels to skip for the changelog
skip-labels: skip-changelog|backport\/.+

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

View File

@@ -1 +1 @@
1 t;dosifnvposdifnv1