Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4356b364f5 | |||
| 06ae7e6661 | |||
| b72578ecbe | |||
| 2ff7b6d295 | |||
| d4e0541ad6 |
11
.github/workflows/liteyuki-gitea-release.yaml
vendored
11
.github/workflows/liteyuki-gitea-release.yaml
vendored
@@ -7,7 +7,6 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
GITEA_API_URL: https://git.liteyuki.icu/api/v1 # 替换为你的 Gitea API 地址
|
GITEA_API_URL: https://git.liteyuki.icu/api/v1 # 替换为你的 Gitea API 地址
|
||||||
TAG_NAME: $(echo $GITHUB_REF | sed 's/refs\/tags\///')
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
@@ -18,12 +17,14 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
|
||||||
- name: Generate Changelog
|
- name: Generate Changelog
|
||||||
run: |
|
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
|
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
|
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
|
# 创建 Gitea Release
|
||||||
- name: Create Gitea Release
|
- name: Create Gitea Release
|
||||||
@@ -34,10 +35,10 @@ jobs:
|
|||||||
-H "Authorization: token $GITEA_TOKEN" \
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{
|
-d '{
|
||||||
"tag_name": "'"$TAG_NAME"'",
|
"tag_name": "'"${{ github.ref_name }}"'",
|
||||||
"target_commitish": "main",
|
"target_commitish": "main",
|
||||||
"name": "'"$TAG_NAME"'",
|
"name": "'"$TAG_NAME"'",
|
||||||
"body": "'"waiting..."'",
|
"body": "'"${{ steps.generate_changelog.outputs.changelog }}"'",
|
||||||
"draft": false,
|
"draft": false,
|
||||||
"prerelease": false
|
"prerelease": false
|
||||||
}'
|
}'
|
||||||
@@ -1,30 +1,64 @@
|
|||||||
|
# The full repository name
|
||||||
repo: bot/yukilog
|
repo: bot/yukilog
|
||||||
|
|
||||||
|
# Service type (gitea or github)
|
||||||
service: gitea
|
service: gitea
|
||||||
|
|
||||||
|
# Base URL for Gitea instance if using gitea service type (optional)
|
||||||
|
# Default: https://gitea.com
|
||||||
base-url: https://git.liteyuki.icu
|
base-url: https://git.liteyuki.icu
|
||||||
|
|
||||||
# Changelog groups and which labeled PRs to add to each group
|
# Changelog groups and which labeled PRs to add to each group
|
||||||
groups:
|
groups:
|
||||||
|
-
|
||||||
|
name: BREAKING
|
||||||
|
labels:
|
||||||
|
- pr/breaking
|
||||||
-
|
-
|
||||||
name: FEATURES
|
name: FEATURES
|
||||||
labels:
|
labels:
|
||||||
- feature
|
- type/feature
|
||||||
|
-
|
||||||
|
name: API
|
||||||
|
labels:
|
||||||
|
- modifies/api
|
||||||
-
|
-
|
||||||
name: BUGFIXES
|
name: BUGFIXES
|
||||||
labels:
|
labels:
|
||||||
- bug
|
- type/bug
|
||||||
-
|
-
|
||||||
name: ENHANCEMENTS
|
name: ENHANCEMENTS
|
||||||
labels:
|
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
|
name: BUILD
|
||||||
labels:
|
labels:
|
||||||
- build
|
- topic/build
|
||||||
|
- topic/code-linting
|
||||||
|
-
|
||||||
|
name: DOCS
|
||||||
|
labels:
|
||||||
|
- type/docs
|
||||||
|
- modifies/docs
|
||||||
-
|
-
|
||||||
name: MISC
|
name: MISC
|
||||||
default: true
|
default: true
|
||||||
|
|
||||||
# regex indicating which labels to skip for the changelog
|
# regex indicating which labels to skip for the changelog
|
||||||
skip-labels: skip-changelog
|
skip-labels: skip-changelog|backport\/.+
|
||||||
Reference in New Issue
Block a user