-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
56 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
template: $CHANGES | ||
category-template: "### $TITLE" | ||
change-template: "- $TITLE ([#$NUMBER]($URL)) @$AUTHOR" | ||
change-title-escapes: '\<&' | ||
exclude-labels: | ||
- "dependencies" | ||
- "skip-changelog" | ||
categories: | ||
- title: "💥 破坏性变更" | ||
labels: | ||
- "breaking" | ||
- title: "✨ 新功能" | ||
labels: | ||
- "enhancement" | ||
- title: "🐛 错误修复" | ||
labels: | ||
- "bug" | ||
- title: "💫 杂项" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: pdm-project/setup-pdm@v3 | ||
|
||
- name: Build distributions | ||
run: pdm build | ||
|
||
- run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | ||
|
||
- uses: release-drafter/release-drafter@v5 | ||
with: | ||
name: 🌟 ${{ env.TAG_NAME }} | ||
tag: ${{ env.TAG_NAME }} | ||
publish: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload assets | ||
run: gh release upload --clobber ${{ env.TAG_NAME }} dist/*.tar.gz dist/*.whl | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Publish to PyPI | ||
run: pdm publish --no-build |