Compare commits
No commits in common. "main" and "v1.0.4" have entirely different histories.
@ -1,10 +1,8 @@
|
|||||||
name: Changelog
|
name: Changelog
|
||||||
|
|
||||||
on:
|
on:
|
||||||
repository_dispatch:
|
release:
|
||||||
types:
|
types:
|
||||||
- generate_changelog
|
- created
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
changelog:
|
changelog:
|
||||||
runs-on: liteyukios-latest
|
runs-on: liteyukios-latest
|
||||||
|
17
.github/workflows/liteyuki-gitea-release.yaml
vendored
17
.github/workflows/liteyuki-gitea-release.yaml
vendored
@ -5,9 +5,6 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
|
|
||||||
env:
|
|
||||||
GITEA_API_URL: https://git.liteyuki.icu/api/v1 # 替换为你的 Gitea API 地址
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: liteyukios-latest
|
runs-on: liteyukios-latest
|
||||||
@ -17,23 +14,19 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
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
|
# 创建 Gitea Release
|
||||||
- name: Create Gitea Release
|
- name: Create Gitea Release
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.LITEYUKI_GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.LITEYUKI_GITEA_TOKEN }}
|
||||||
|
GITEA_API_URL: https://git.liteyuki.icu/api/v1 # 替换为你的 Gitea API 地址
|
||||||
run: |
|
run: |
|
||||||
curl -X POST "$GITEA_API_URL/repos/${{ github.repository }}/releases" \
|
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" \
|
||||||
-H "Authorization: token $GITEA_TOKEN" \
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{
|
-d '{
|
||||||
"tag_name": "'"${{ github.ref_name }}"'",
|
"tag_name": "'"$TAG_NAME"'",
|
||||||
"target_commitish": "main",
|
"target_commitish": "main",
|
||||||
"name": "'"$TAG_NAME"'",
|
"name": "'"$TAG_NAME"'",
|
||||||
"body": "'"waiting..."'",
|
"body": "'"waiting..."'",
|
||||||
|
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user