Compare commits
No commits in common. "main" and "v0.1.1" have entirely different histories.
15
.github/workflows/liteyuki-gitea-changelog.yaml
vendored
15
.github/workflows/liteyuki-gitea-changelog.yaml
vendored
@ -1,15 +0,0 @@
|
||||
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
42
.github/workflows/liteyuki-gitea-release.yaml
vendored
@ -1,42 +0,0 @@
|
||||
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: |
|
||||
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: |
|
||||
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
|
||||
}'
|
5
.github/workflows/liteyuki-pypi-publish.yaml
vendored
5
.github/workflows/liteyuki-pypi-publish.yaml
vendored
@ -5,6 +5,9 @@ on:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
permissions:
|
||||
packages: write
|
||||
|
||||
jobs:
|
||||
liteyuki-pypi-publish:
|
||||
name: Upload release to PyPI
|
||||
@ -21,5 +24,5 @@ jobs:
|
||||
- name: Build and publish
|
||||
run: |
|
||||
uv build
|
||||
uv publish --index liteyuki-pypi --token ${{ secrets.LITEYUKI_GITEA_TOKEN }}
|
||||
uv publish --index liteyuki-pypi --token ${{ secrets.LITEYUKI_PYPI_TOKEN }}
|
||||
|
@ -1,30 +0,0 @@
|
||||
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
|
@ -18,8 +18,8 @@ dev = [
|
||||
requires = ["pdm-backend >= 2.4.0"]
|
||||
build-backend = "pdm.backend"
|
||||
|
||||
[tool.pdm.build]
|
||||
includes = ["yukilog"]
|
||||
[tool.setuptools]
|
||||
packages = ["yukilog"]
|
||||
|
||||
[tool.pdm.version]
|
||||
source = "scm"
|
||||
|
Loading…
x
Reference in New Issue
Block a user