Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 06ae7e6661 | |||
| b72578ecbe |
@@ -7,7 +7,6 @@ on:
|
||||
|
||||
env:
|
||||
GITEA_API_URL: https://git.liteyuki.icu/api/v1 # 替换为你的 Gitea API 地址
|
||||
|
||||
|
||||
jobs:
|
||||
release:
|
||||
@@ -20,9 +19,12 @@ jobs:
|
||||
|
||||
- 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
|
||||
changelog_output=$(changelog generate -m=${{ github.ref_name }} -c=./changelog.yaml)
|
||||
echo "$changelog_output"
|
||||
echo "::set-output name=changelog::$changelog_output"
|
||||
|
||||
# 创建 Gitea Release
|
||||
- name: Create Gitea Release
|
||||
@@ -36,7 +38,7 @@ jobs:
|
||||
"tag_name": "'"${{ github.ref_name }}"'",
|
||||
"target_commitish": "main",
|
||||
"name": "'"$TAG_NAME"'",
|
||||
"body": "'"waiting..."'",
|
||||
"body": "'"${{ steps.generate_changelog.outputs.changelog }}"'",
|
||||
"draft": false,
|
||||
"prerelease": false
|
||||
}'
|
||||
Reference in New Issue
Block a user