feat(ci): add release metadata preparation step in workflow
- Introduced a new step to prepare release metadata, generating a formatted release name using the tag name. - Updated the artifact naming to utilize the prepared release name for improved clarity in release outputs. Benefits: - Enhances the release workflow by ensuring consistent and informative naming for release artifacts, improving traceability.
This commit is contained in:
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@@ -849,6 +849,15 @@ jobs:
|
||||
- name: "List Release Artifacts"
|
||||
run: ls -lR release-artifacts || echo "No artifacts directory"
|
||||
|
||||
- name: "Prepare Release Metadata"
|
||||
id: metadata
|
||||
shell: bash
|
||||
env:
|
||||
TAG_NAME: ${{ needs.prepare-release.outputs.tag_name }}
|
||||
run: |
|
||||
echo "release_name=yaze ${TAG_NAME}" >> "$GITHUB_OUTPUT"
|
||||
echo "Prepared release name: yaze ${TAG_NAME}"
|
||||
|
||||
- name: "Generate Platform Availability Report"
|
||||
id: platform_report
|
||||
shell: bash
|
||||
@@ -914,7 +923,7 @@ jobs:
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: ${{ needs.prepare-release.outputs.tag_name }}
|
||||
name: yaze ${{ needs.prepare-release.outputs.tag_name }}
|
||||
name: ${{ steps.metadata.outputs.release_name }}
|
||||
body: |
|
||||
${{ steps.platform_report.outputs.availability }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user