workflow: update release note handling and fix path for GitHub release body
This commit is contained in:
parent
40cc18e7fa
commit
26eb8228ba
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
@ -167,7 +167,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
|
||||||
- name: Create releases directory
|
- name: Download Release Note
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Release Note
|
||||||
|
path: release_note
|
||||||
|
|
||||||
|
- name: Create releases directory
|
||||||
run: mkdir -p releases
|
run: mkdir -p releases
|
||||||
|
|
||||||
- name: Package artifacts into tar.gz
|
- name: Package artifacts into tar.gz
|
||||||
@ -183,7 +189,7 @@ jobs:
|
|||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
if: ${{ needs.job_prepare.outputs.push_type == 'tag' }}
|
if: ${{ needs.job_prepare.outputs.push_type == 'tag' }}
|
||||||
with:
|
with:
|
||||||
body_path: releases/release_note.md
|
body_path: release_note/release_note.md
|
||||||
tag_name: ${{ needs.job_prepare.outputs.tag_name }}
|
tag_name: ${{ needs.job_prepare.outputs.tag_name }}
|
||||||
prerelease: ${{ contains(needs.job_prepare.outputs.tag_name, '-beta') || contains(needs.job_prepare.outputs.tag_name, '-rc') }}
|
prerelease: ${{ contains(needs.job_prepare.outputs.tag_name, '-beta') || contains(needs.job_prepare.outputs.tag_name, '-rc') }}
|
||||||
files: releases/*
|
files: releases/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user