Compare commits
5 Commits
62507822ba
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 3d46ca03dc | |||
| b72578ecbe | |||
| 2ff7b6d295 | |||
| d4e0541ad6 | |||
| e6f6a4a360 |
23
.github/workflows/liteyuki-gitea-release.yaml
vendored
23
.github/workflows/liteyuki-gitea-release.yaml
vendored
@@ -17,31 +17,26 @@ 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 }}
|
||||
run: |
|
||||
TAG_NAME=$(echo $GITHUB_REF | sed 's/refs\/tags\///')
|
||||
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..."'",
|
||||
"draft": false,
|
||||
"prerelease": false
|
||||
}'
|
||||
|
||||
|
||||
- name: Trigger Changelog Workflow
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
curl -X POST \
|
||||
-H "Authorization: token $GITHUB_TOKEN" \
|
||||
-H "Accept: application/vnd.github.everest-preview+json" \
|
||||
$GITEA_API_URL/repos/${{ github.repository }}/dispatches \
|
||||
-d '{"event_type": "generate_changelog"}'
|
||||
}'
|
||||
18
README.md
18
README.md
@@ -0,0 +1,18 @@
|
||||
## 怎么用
|
||||
|
||||
uv作为依赖管理,可以在pyproject.toml中加入,其他自行文档
|
||||
|
||||
```toml
|
||||
# 索引和源
|
||||
[[tool.uv.index]]
|
||||
name = "liteyuki-pypi"
|
||||
url = "https://git.liteyuki.org/api/packages/LiteyukiStudio/pypi/simple"
|
||||
publish-url = "https://git.liteyuki.org/api/packages/LiteyukiStudio/pypi"
|
||||
explicit = true
|
||||
|
||||
# 从轻雪源安装的包请在此标记
|
||||
[tool.uv.sources]
|
||||
yukilog = [
|
||||
{ index = "liteyuki-pypi" },
|
||||
]
|
||||
```
|
||||
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
|
||||
Reference in New Issue
Block a user