mirror of
https://github.com/MSWS/TTT.git
synced 2025-12-06 06:22:44 -08:00
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:
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user