Skip to content

Commit ea55bdb

Browse files
committed
chore: update release action
1 parent df1b4f8 commit ea55bdb

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,20 @@
11
name: Release
22

33
on:
4+
workflow_dispatch:
45
push:
56
tags:
67
- 'v*'
78

89
jobs:
910
build:
10-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-24.04
1112
steps:
1213
- uses: actions/checkout@v4
14+
- uses: softprops/action-gh-release@v2
15+
if: github.ref_type == 'tag'
1316
with:
14-
fetch-depth: 0
15-
- uses: scottbrenner/generate-changelog-action@master
16-
id: Changelog
17+
generate_release_notes: true
18+
prerelease: ${{ contains(github.ref, '-rc') }}
1719
env:
18-
REPO: ${{ github.repository }}
19-
- id: create_release
20-
uses: actions/create-release@latest
21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
with:
24-
tag_name: ${{ github.ref }}
25-
release_name: ${{ github.ref }}
26-
body: |
27-
${{ steps.Changelog.outputs.changelog }}
28-
draft: false
29-
prerelease: false
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)