Skip to content

Commit

Permalink
chore: 修改CI,支持生成release (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
nashaofu authored Feb 1, 2024
1 parent 2e70acf commit 900ff2e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
15 changes: 2 additions & 13 deletions .github/release-drafter.yml → .github/release-drafter.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
name-template: "v$RESOLVED_VERSION 🌈"
tag-template: "v$RESOLVED_VERSION"
categories:
- title: "🚀 Features"
labels:
Expand All @@ -14,18 +12,9 @@ categories:
label: "chore"
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- "major"
minor:
labels:
- "minor"
patch:
labels:
- "patch"
default: patch
template: |
## Changes
$CHANGES
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
14 changes: 8 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,14 @@ jobs:
override: true
components: rustfmt, clippy

# - name: Release draft
# uses: release-drafter/release-drafter@v5
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# publish: true
- name: Release drafter
uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
publish: true
name: ${{ github.ref_name }}
tag: ${{ github.ref_name }}

- name: Publish
env:
Expand Down

0 comments on commit 900ff2e

Please sign in to comment.