feat(workflow): enhance release process with additional steps
All checks were successful
Auto Changelog & Release / release (push) Successful in 6s
All checks were successful
Auto Changelog & Release / release (push) Successful in 6s
- Add git-cliff installation and configuration for changelog generation - Include CLIFF_VERSION detection and handling - Improve git setup for release automation - Refine conditional steps for changelog and version release
This commit is contained in:
@@ -10,5 +10,8 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: https://git.0xmax42.io/actions/auto-changelog-release-action@main
|
uses: https://git.0xmax42.io/actions/auto-changelog-release-action@main
|
||||||
|
34
action.yml
34
action.yml
@@ -18,13 +18,37 @@ inputs:
|
|||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Detect version change
|
- name: Detect version change
|
||||||
shell: bash
|
shell: bash
|
||||||
id: detect
|
id: detect
|
||||||
run: |
|
run: |
|
||||||
bash ${{ github.action_path }}/scripts/detect-version-change.sh
|
bash ${{ github.action_path }}/scripts/detect-version-change.sh
|
||||||
|
|
||||||
|
- name: Read CLIFF_VERSION
|
||||||
|
shell: bash
|
||||||
|
id: cliff_version
|
||||||
|
run: bash ${{ github.action_path }}/scripts/read-cliff-version.sh
|
||||||
|
|
||||||
|
- name: Install git-cliff
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
bash ${{ github.action_path }}/scripts/install-git-cliff.sh "${{ steps.cliff_version.outputs.version }}"
|
||||||
|
|
||||||
|
- name: Set up git
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
bash ${{ github.action_path }}/scripts/setup-git.sh \
|
||||||
|
"${{ inputs.author_name }}" \
|
||||||
|
"${{ inputs.author_email }}"
|
||||||
|
|
||||||
|
- name: Generate and commit changelog (unreleased)
|
||||||
|
if: steps.detect.outputs.version_changed == 'false' || github.ref != 'refs/heads/main'
|
||||||
|
shell: bash
|
||||||
|
run: bash ${{ github.action_path }}/scripts/generate-unreleased-changelog.sh
|
||||||
|
|
||||||
|
- name: Release from VERSION
|
||||||
|
if: steps.detect.outputs.version_changed == 'true' && github.ref == 'refs/heads/main'
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
RELEASE_PUBLISH_TOKEN: ${{ inputs.token || '' }}
|
||||||
|
run: bash ${{ github.action_path }}/scripts/release-from-version.sh
|
||||||
|
Reference in New Issue
Block a user