Skip to content

Commit

Permalink
🧪 test: 测试changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
nichuanfang committed Oct 13, 2023
1 parent e957997 commit 3773d9a
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 80 deletions.
69 changes: 0 additions & 69 deletions .github/workflows/ci.yml

This file was deleted.

65 changes: 65 additions & 0 deletions .github/workflows/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"template": "#{{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n#{{UNCATEGORIZED}}\n</details>",
"categories": [
{
"title": "## 🚀 Features",
"labels": [
"feat"
]
},
{
"title": "## 🐛 Fixes",
"labels": [
"fix"
]
},
{
"title": "## 📝 Documentation",
"labels": [
"docs"
]
},
{
"title": "## 🎨 Style",
"labels": [
"style"
]
},
{
"title": "## 🧰 Refactor",
"labels": [
"refactor"
]
},
{
"title": "## 🚨 Perf",
"labels": [
"perf"
]
},
{
"title": "## 🧪 Tests",
"labels": [
"test"
]
},
{
"title": "## 📦 Build",
"labels": [
"build"
]
},
{
"title": "## 📦 CI",
"labels": [
"ci"
]
},
{
"title": "## 📦 Chore",
"labels": [
"chore"
]
}
]
}
67 changes: 57 additions & 10 deletions .github/workflows/release_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
python setup.py sdist bdist_wheel
twine upload dist/*
# # 生成发行说明
# 生成发行说明
# - name: Generate Release Notes
# id: gen_release_notes
# uses: actions/github-script@v3
Expand All @@ -82,6 +82,61 @@ jobs:
# run: |
# echo "changelog=${{ steps.gen_release_notes.outputs.result }}" >> "$GITHUB_OUTPUT"

- name: Build Changelog
id: build_changelog
uses: mikepenz/[email protected]
with:
fromTag: ${{ github.event.before }}
toTag: ${{ github.event.after }}
configurationJson: |
{
"template": "#{{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n#{{UNCATEGORIZED}}\n</details>",
"categories": [
{
"title": "## 🚀 Features",
"labels": ["feat"]
},
{
"title": "## 🐛 Fixes",
"labels": ["fix"]
},
{
"title": "## 📝 Documentation",
"labels": ["docs"]
},
{
"title": "## 🎨 Style",
"labels": ["style"]
},
{
"title": "## 🧰 Refactor",
"labels": ["refactor"]
},
{
"title": "## 🚨 Perf",
"labels": ["perf"]
},
{
"title": "## 🧪 Tests",
"labels": ["test"]
},
{
"title": "## 📦 Build",
"labels": ["build"]
},
{
"title": "## 📦 CI",
"labels": ["ci"]
},
{
"title": "## 📦 Chore",
"labels": ["chore"]
}
]
}
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

# 创建release
- name: Create Release
id: create_release
Expand All @@ -92,14 +147,6 @@ jobs:
with:
tag_name: v${{ steps.get_version.outputs.version }}
release_name: v${{ steps.get_version.outputs.version }}
# body: ${{steps.build_changelog.outputs.changelog}}
body: ${{steps.build_changelog.outputs.changelog}}
draft: false
prerelease: false

# - name: 'Build Changelog'
# id: github_release
# uses: mikepenz/release-changelog-builder-action@v4
# with:
# configuration: 'configs/configuration_repo.json'
# env:
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name='music-tool-kit',
version='0.6.3',
version='0.6.4',
description='A tool kit for music download and clip',
long_description_content_type='text/markdown',
long_description=readme,
Expand Down

0 comments on commit 3773d9a

Please sign in to comment.