Compare commits

...

5 Commits
v1.0.4 ... main

Author SHA1 Message Date
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
d4e0541ad6 移动 TAG_NAME 环境变量定义到生成变更日志和创建 Gitea Release 步骤中,以确保正确使用
Some checks failed
Release to Liteyuki Gitea / release (push) Failing after 11s
Publish to Liteyuki PyPI / Upload release to PyPI (push) Successful in 16s
2025-04-29 01:01:46 +08:00
e6f6a4a360 添加 changelog.yaml 文件以配置变更日志生成
Some checks failed
Release to Liteyuki Gitea / release (push) Failing after 12s
Publish to Liteyuki PyPI / Upload release to PyPI (push) Successful in 16s
2025-04-29 00:59:12 +08:00
62507822ba 更新 Gitea 发布工作流,修改触发事件为 repository_dispatch 并添加 GITEA_API_URL 环境变量
All checks were successful
Release to Liteyuki Gitea / release (push) Successful in 9s
Publish to Liteyuki PyPI / Upload release to PyPI (push) Successful in 17s
2025-04-29 00:46:35 +08:00
3 changed files with 46 additions and 7 deletions

View File

@ -1,8 +1,10 @@
name: Changelog
on:
release:
repository_dispatch:
types:
- created
- generate_changelog
jobs:
changelog:
runs-on: liteyukios-latest

View File

@ -5,6 +5,9 @@ on:
tags:
- 'v*'
env:
GITEA_API_URL: https://git.liteyuki.icu/api/v1 # 替换为你的 Gitea API 地址
jobs:
release:
runs-on: liteyukios-latest
@ -14,19 +17,23 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: Generate Changelog
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=${{ github.ref_name }} -c=./changelog.yaml
# 创建 Gitea Release
- name: Create Gitea Release
env:
GITEA_TOKEN: ${{ secrets.LITEYUKI_GITEA_TOKEN }}
GITEA_API_URL: https://git.liteyuki.icu/api/v1 # 替换为你的 Gitea API 地址
run: |
TAG_NAME=$(echo $GITHUB_REF | sed 's/refs\/tags\///')
echo 'AAA ${{ github.repository }} ${{ github.repository_owner }} ${{ github.event.repository.name }}'
curl -X POST "$GITEA_API_URL/repos/bot/yukilog/releases" \
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..."'",

30
changelog.yaml Normal file
View File

@ -0,0 +1,30 @@
repo: bot/yukilog
service: gitea
base-url: https://git.liteyuki.icu
# Changelog groups and which labeled PRs to add to each group
groups:
-
name: FEATURES
labels:
- feature
-
name: BUGFIXES
labels:
- bug
-
name: ENHANCEMENTS
labels:
- enhancement
-
name: BUILD
labels:
- build
-
name: MISC
default: true
# regex indicating which labels to skip for the changelog
skip-labels: skip-changelog