4 Commits

Author SHA1 Message Date
4356b364f5 更新 changelog.yaml 文件,添加更多标签以支持不同类型的变更,并删除不必要的 py.typed 文件
All checks were successful
Release to Liteyuki Gitea / release (push) Successful in 11s
Publish to Liteyuki PyPI / Upload release to PyPI (push) Successful in 14s
2025-04-29 01:21:27 +08:00
06ae7e6661 更新生成变更日志步骤,修复输出逻辑以正确设置 changelog 输出
All checks were successful
Release to Liteyuki Gitea / release (push) Successful in 19s
Publish to Liteyuki PyPI / Upload release to PyPI (push) Successful in 27s
2025-04-29 01:06:56 +08:00
b72578ecbe 修复生成变更日志步骤中的语法错误,确保正确输出当前版本信息
All checks were successful
Release to Liteyuki Gitea / release (push) Successful in 21s
Publish to Liteyuki PyPI / Upload release to PyPI (push) Successful in 27s
2025-04-29 01:04:54 +08:00
2ff7b6d295 更新生成变更日志步骤,移除 TAG_NAME 环境变量定义,直接使用 github.ref_name 作为标签名称
Some checks failed
Release to Liteyuki Gitea / release (push) Failing after 14s
Publish to Liteyuki PyPI / Upload release to PyPI (push) Successful in 16s
2025-04-29 01:03:57 +08:00
3 changed files with 45 additions and 12 deletions

View File

@@ -7,7 +7,6 @@ on:
env:
GITEA_API_URL: https://git.liteyuki.icu/api/v1 # 替换为你的 Gitea API 地址
jobs:
release:
@@ -19,27 +18,27 @@ jobs:
uses: actions/checkout@v3
- name: Generate Changelog
env:
TAG_NAME: $(echo $GITHUB_REF | sed 's/refs\/tags\///')
run: |
echo "Current version: ${{ github.ref_name }}"
wget -O /usr/bin/changelog https://gitea.com/gitea/changelog/releases/download/v1.0.0/changelog-1.0.0-linux-amd64
chmod +x /usr/bin/changelog
changelog -m=$TAG_NAME -c=./changelog.yaml
changelog_output=$(changelog generate -m=${{ github.ref_name }} -c=./changelog.yaml)
echo "$changelog_output"
echo "::set-output name=changelog::$changelog_output"
# 创建 Gitea Release
- name: Create Gitea Release
env:
GITEA_TOKEN: ${{ secrets.LITEYUKI_GITEA_TOKEN }}
TAG_NAME: $(echo $GITHUB_REF | sed 's/refs\/tags\///')
run: |
curl -X POST "$GITEA_API_URL/repos/${{ github.repository }}/releases" \
-H "Authorization: token $GITEA_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"tag_name": "'"$TAG_NAME"'",
"tag_name": "'"${{ github.ref_name }}"'",
"target_commitish": "main",
"name": "'"$TAG_NAME"'",
"body": "'"waiting..."'",
"body": "'"${{ steps.generate_changelog.outputs.changelog }}"'",
"draft": false,
"prerelease": false
}'

View File

@@ -1,30 +1,64 @@
# The full repository name
repo: bot/yukilog
# 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.liteyuki.icu
# Changelog groups and which labeled PRs to add to each group
groups:
-
name: BREAKING
labels:
- pr/breaking
-
name: FEATURES
labels:
- feature
- type/feature
-
name: API
labels:
- modifies/api
-
name: BUGFIXES
labels:
- bug
- type/bug
-
name: ENHANCEMENTS
labels:
- enhancement
- 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:
- build
- 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
skip-labels: skip-changelog|backport\/.+