ci: Update release workflow for consistency and clarity

- Adjust workflow trigger condition in `.github/workflows/release.yml` to require a successful previous run.
- Update syntax for branch extraction using GitHub Actions expression in the release workflow.
- Bump `actions/checkout` to version v4.
- Modify GitVersion setup and execution to use version v4.0.1.
- Introduce conditions for creating a GitHub release only from the 'main' or 'dev' branch.
- Enhance the `Create GitHub Release` step with dynamic attributes.
- Apply formatting changes for improved clarity.
This commit is contained in:
MSWS
2025-08-03 03:22:36 -07:00
parent 3c77d5fdc1
commit 9aa0b13e23

View File

@@ -20,6 +20,7 @@ jobs:
permissions:
contents: write
actions: read
steps:
- name: Extract Triggering Branch
@@ -60,6 +61,7 @@ jobs:
if: ${{ steps.extract_branch.outputs.branch == 'main' || steps.extract_branch.outputs.branch == 'dev' }}
uses: softprops/action-gh-release@v2
with:
token: '${{ secrets.GITHUB_TOKEN }}'
name: ${{ steps.gitversion.outputs.fullSemVer }}
tag_name: ${{ steps.gitversion.outputs.fullSemVer }}
body: ${{ steps.changelog.outputs.changelog }}