Skip to content

Commit

Permalink
Merge pull request #75 from YidiDev/dev
Browse files Browse the repository at this point in the history
ci: simplify release workflow by combining note generation and publis…
  • Loading branch information
YidiDev authored Oct 5, 2024
2 parents 1307de5 + e335788 commit caf5267
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name-template: 'v$NEXT_PATCH_VERSION 🌈'
name-template: 'v Release $NEXT_PATCH_VERSION 🌈'
tag-template: 'v$NEXT_PATCH_VERSION'
categories:
- title: '🚀 Features'
Expand Down
18 changes: 5 additions & 13 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Generate Release Notes
- name: Generate Release Notes and Publish
id: generate_release_notes
uses: release-drafter/release-drafter@v6
with:
config-name: 'release-drafter.yml'
name: "Release ${{ github.ref_name }}"
tag: ${{ github.ref_name }}
publish: true
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: "Release ${{ github.ref_name }}"
body: ${{ steps.generate_release_notes.outputs.draft-body }}
draft: false
prerelease: false

0 comments on commit caf5267

Please sign in to comment.