Compare commits
21 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0cccf1870e | |||
| 5edda37114 | |||
|
|
2b75a624fd | ||
|
|
00242568d0 | ||
|
|
b1650a1738 | ||
|
|
02634dca9b | ||
|
|
90e5ff4b52 | ||
|
|
2902fd0f90 | ||
|
|
4fe21b0430 | ||
|
|
30cc00ca8f | ||
|
|
1b65438e71 | ||
|
|
bbaf5af45c | ||
|
|
3ae14fb1fd | ||
|
|
5dd6aeb737 | ||
|
|
307c1bb715 | ||
|
|
22e64b6dec | ||
| 873a4c5237 | |||
|
|
ea0511ae49 | ||
|
|
e9235bb816 | ||
|
|
888cae3db2 | ||
|
|
78253e9314 |
@@ -13,12 +13,48 @@ 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 -t="${VERSION}" -c="${GITHUB_WORKSPACE}/changelog.yml" > CHANGELOG.md
|
||||||
|
echo "changelog<<EOF" >> $GITHUB_OUTPUT
|
||||||
|
cat CHANGELOG.md >> $GITHUB_OUTPUT
|
||||||
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
|
- name: Generate changelog
|
||||||
|
id: changelog
|
||||||
|
env:
|
||||||
|
CHANGELOG_TOKEN: ${{ secrets.CHANGELOG_TOKEN }}
|
||||||
|
run: #|
|
||||||
|
VERSION="${GITHUB_REF_NAME}"
|
||||||
|
changelog generate \
|
||||||
|
-t="${VERSION}" \
|
||||||
|
-c="${GITHUB_WORKSPACE}/changelog.yml" \
|
||||||
|
--token="${CHANGELOG_TOKEN}" > CHANGELOG.md
|
||||||
|
|
||||||
|
echo "changelog<<EOF" >> $GITHUB_OUTPUT
|
||||||
|
cat CHANGELOG.md >> $GITHUB_OUTPUT
|
||||||
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: "Build Changelog"
|
||||||
|
id: build_changelog
|
||||||
|
uses: mikepenz/release-changelog-builder-action@v6.1.0
|
||||||
|
|
||||||
- name: Create Gitea Release
|
- name: Create Gitea Release
|
||||||
uses: gitea.com/actions/gitea-release-action@main
|
uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
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 }}
|
||||||
|
|
||||||
|
|||||||
63
changelog.yml
Normal file
63
changelog.yml
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
# The full repository name
|
||||||
|
repo: timmybee/test-release-merging
|
||||||
|
|
||||||
|
# Service type (gitea or github)
|
||||||
|
service: gitea
|
||||||
|
|
||||||
|
# Base URL for Gitea instance if using gitea service type (optional)
|
||||||
|
# Default: https://gitea.com
|
||||||
|
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
17
release
Executable 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
|
||||||
|
|
||||||
@@ -1 +1 @@
|
|||||||
1
|
t;dosifnvposdifnv1
|
||||||
|
|||||||
Reference in New Issue
Block a user