Compare commits
14 Commits
963ac14edf
...
v1.0.8
| Author | SHA1 | Date | |
|---|---|---|---|
| 2ff7b6d295 | |||
| d4e0541ad6 | |||
| e6f6a4a360 | |||
| 62507822ba | |||
| b3d99bfe93 | |||
| 3db6cfcb17 | |||
| 589e4f8a06 | |||
| 748751165c | |||
| a8169542c4 | |||
| 61c372babf | |||
| 04afe0ff8d | |||
| 5ad3a91296 | |||
| 2d2125a601 | |||
| ea3e48a838 |
15
.github/workflows/liteyuki-gitea-changelog.yaml
vendored
Normal file
15
.github/workflows/liteyuki-gitea-changelog.yaml
vendored
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
name: Changelog
|
||||||
|
|
||||||
|
on:
|
||||||
|
repository_dispatch:
|
||||||
|
types:
|
||||||
|
- generate_changelog
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
changelog:
|
||||||
|
runs-on: liteyukios-latest
|
||||||
|
steps:
|
||||||
|
- name: "✏️ Generate release changelog"
|
||||||
|
uses: janheinrichmerker/action-github-changelog-generator@v2.3
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
42
.github/workflows/liteyuki-gitea-release.yaml
vendored
Normal file
42
.github/workflows/liteyuki-gitea-release.yaml
vendored
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
name: Release to Liteyuki Gitea
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
env:
|
||||||
|
GITEA_API_URL: https://git.liteyuki.icu/api/v1 # 替换为你的 Gitea API 地址
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: liteyukios-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
# 检出代码
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Generate Changelog
|
||||||
|
run: |
|
||||||
|
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 }}
|
||||||
|
run: |
|
||||||
|
curl -X POST "$GITEA_API_URL/repos/${{ github.repository }}/releases" \
|
||||||
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-d '{
|
||||||
|
"tag_name": "'"${{ github.ref_name }}"'",
|
||||||
|
"target_commitish": "main",
|
||||||
|
"name": "'"$TAG_NAME"'",
|
||||||
|
"body": "'"waiting..."'",
|
||||||
|
"draft": false,
|
||||||
|
"prerelease": false
|
||||||
|
}'
|
||||||
25
.github/workflows/liteyuki-pypi-publish.yaml
vendored
Normal file
25
.github/workflows/liteyuki-pypi-publish.yaml
vendored
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
name: Publish to Liteyuki PyPI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
liteyuki-pypi-publish:
|
||||||
|
name: Upload release to PyPI
|
||||||
|
runs-on: liteyukios-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
|
||||||
|
- name: Setup uv
|
||||||
|
uses: astral-sh/setup-uv@v6
|
||||||
|
with:
|
||||||
|
version: "latest"
|
||||||
|
|
||||||
|
- name: Build and publish
|
||||||
|
run: |
|
||||||
|
uv build
|
||||||
|
uv publish --index liteyuki-pypi --token ${{ secrets.LITEYUKI_GITEA_TOKEN }}
|
||||||
|
|
||||||
6
.gitignore
vendored
6
.gitignore
vendored
@@ -20,4 +20,8 @@ Thumbs.db
|
|||||||
.env
|
.env
|
||||||
.env.*
|
.env.*
|
||||||
plugins/
|
plugins/
|
||||||
data/
|
data/
|
||||||
|
|
||||||
|
# pdm
|
||||||
|
.pdm-build/
|
||||||
|
dist/
|
||||||
30
changelog.yaml
Normal file
30
changelog.yaml
Normal 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
|
||||||
10
main
10
main
@@ -1,10 +0,0 @@
|
|||||||
2025-04-28 01:58:50.080 | DEBUG | __main__:main:6 - This is a debug message
|
|
||||||
2025-04-28 01:58:50.080 | INFO | __main__:main:7 - This is an info message
|
|
||||||
2025-04-28 01:58:50.080 | WARNING | __main__:main:8 - This is a warning message
|
|
||||||
2025-04-28 01:58:50.080 | ERROR | __main__:main:9 - This is an error message
|
|
||||||
2025-04-28 01:58:50.080 | CRITICAL | __main__:main:10 - This is a critical message
|
|
||||||
2025-04-28 01:58:50.839 | DEBUG | __main__:main:6 - This is a debug message
|
|
||||||
2025-04-28 01:58:50.839 | INFO | __main__:main:7 - This is an info message
|
|
||||||
2025-04-28 01:58:50.839 | WARNING | __main__:main:8 - This is a warning message
|
|
||||||
2025-04-28 01:58:50.839 | ERROR | __main__:main:9 - This is an error message
|
|
||||||
2025-04-28 01:58:50.839 | CRITICAL | __main__:main:10 - This is a critical message
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "yukilog"
|
name = "yukilog"
|
||||||
version = "0.1.0"
|
dynamic = ["version"]
|
||||||
description = "Add your description here"
|
description = "Add your description here"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.12"
|
||||||
@@ -13,3 +13,22 @@ dev = [
|
|||||||
"mypy>=1.15.0",
|
"mypy>=1.15.0",
|
||||||
"pytest>=8.3.5",
|
"pytest>=8.3.5",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["pdm-backend >= 2.4.0"]
|
||||||
|
build-backend = "pdm.backend"
|
||||||
|
|
||||||
|
[tool.pdm.build]
|
||||||
|
includes = ["yukilog"]
|
||||||
|
|
||||||
|
[tool.pdm.version]
|
||||||
|
source = "scm"
|
||||||
|
tag_filter = "v*"
|
||||||
|
tag_regex = '^v(?:\D*)?(?P<version>([1-9][0-9]*!)?(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))*((a|b|c|rc)(0|[1-9][0-9]*))?(\.post(0|[1-9][0-9]*))?(\.dev(0|[1-9][0-9]*))?$)$'
|
||||||
|
fallback_version = "0.1.0"
|
||||||
|
|
||||||
|
[[tool.uv.index]]
|
||||||
|
name = "liteyuki-pypi"
|
||||||
|
url = "https://git.liteyuki.icu/api/packages/LiteyukiStudio/pypi/simple"
|
||||||
|
publish-url = "https://git.liteyuki.icu/api/packages/LiteyukiStudio/pypi"
|
||||||
|
explicit = true
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
def print_message(logger):
|
|
||||||
logger.success("This is a success message")
|
|
||||||
Reference in New Issue
Block a user