2024-03-27 09:00:20 +00:00
|
|
|
name: GitHub Release
|
2024-02-19 20:56:59 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-02-21 18:08:24 +00:00
|
|
|
tags: [ v* ]
|
2024-03-27 10:37:54 +00:00
|
|
|
# workflow_run:
|
|
|
|
# workflows: ["Docker Release"]
|
|
|
|
# types: [completed]
|
2024-02-19 20:56:59 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-03-27 10:37:54 +00:00
|
|
|
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
2024-02-19 20:56:59 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
pull-requests: read
|
|
|
|
|
|
|
|
name: Generate Release
|
|
|
|
steps:
|
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v4
|
2024-02-22 14:15:29 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2024-02-19 20:56:59 +00:00
|
|
|
|
|
|
|
- name: Generate Changelog
|
|
|
|
uses: pfandie/generate-changelog-action@v1.0.6
|
|
|
|
id: changelog
|
|
|
|
with:
|
2024-02-21 18:08:24 +00:00
|
|
|
config_path: .chglog
|
2024-02-19 20:56:59 +00:00
|
|
|
next_tag: ${{ github.ref_name }}
|
|
|
|
|
|
|
|
- name: Create Release
|
|
|
|
uses: ncipollo/release-action@v1.14.0
|
|
|
|
with:
|
|
|
|
makeLatest: true
|
|
|
|
body: ${{ steps.changelog.outputs.changelog }}
|
|
|
|
name: "Release ${{ github.ref_name }}"
|