Skip to content

Commit 05abdf2

Browse files
committed
update release action
1 parent a7c341b commit 05abdf2

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/release.yml

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

33
on:
4+
workflow_dispatch:
45
push:
56
tags:
6-
- "v*"
7+
- '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-
- uses: actions/create-release@latest
20-
env:
21-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22-
with:
23-
tag_name: ${{ github.ref }}
24-
release_name: ${{ github.ref }}
25-
body: |
26-
${{ steps.Changelog.outputs.changelog }}
27-
draft: false
28-
prerelease: false
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)