Mayo commited on
ci: add release notes
Browse files
.github/workflows/release.yaml
CHANGED
|
@@ -28,6 +28,9 @@ jobs:
|
|
| 28 |
runs-on: ${{ matrix.platform }}
|
| 29 |
steps:
|
| 30 |
- uses: actions/checkout@v6
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
- uses: oven-sh/setup-bun@v2
|
| 33 |
|
|
@@ -50,6 +53,16 @@ jobs:
|
|
| 50 |
- name: Install dependencies
|
| 51 |
run: bun install
|
| 52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
- name: Install trusted-signing-cli (windows only)
|
| 54 |
if: matrix.platform == 'windows-latest'
|
| 55 |
run: cargo install trusted-signing-cli
|
|
@@ -95,6 +108,7 @@ jobs:
|
|
| 95 |
with:
|
| 96 |
tagName: ${{ github.ref_name }}
|
| 97 |
releaseName: ${{ github.ref_name }}
|
|
|
|
| 98 |
releaseDraft: false
|
| 99 |
prerelease: false
|
| 100 |
args: ${{ matrix.args }}
|
|
|
|
| 28 |
runs-on: ${{ matrix.platform }}
|
| 29 |
steps:
|
| 30 |
- uses: actions/checkout@v6
|
| 31 |
+
with:
|
| 32 |
+
fetch-depth: 0
|
| 33 |
+
fetch-tags: true
|
| 34 |
|
| 35 |
- uses: oven-sh/setup-bun@v2
|
| 36 |
|
|
|
|
| 53 |
- name: Install dependencies
|
| 54 |
run: bun install
|
| 55 |
|
| 56 |
+
- name: Generate release changelog
|
| 57 |
+
id: release_notes
|
| 58 |
+
shell: bash
|
| 59 |
+
run: |
|
| 60 |
+
{
|
| 61 |
+
echo 'release_body<<EOF'
|
| 62 |
+
bun git-cliff --current --strip all
|
| 63 |
+
echo 'EOF'
|
| 64 |
+
} >> "$GITHUB_OUTPUT"
|
| 65 |
+
|
| 66 |
- name: Install trusted-signing-cli (windows only)
|
| 67 |
if: matrix.platform == 'windows-latest'
|
| 68 |
run: cargo install trusted-signing-cli
|
|
|
|
| 108 |
with:
|
| 109 |
tagName: ${{ github.ref_name }}
|
| 110 |
releaseName: ${{ github.ref_name }}
|
| 111 |
+
releaseBody: ${{ steps.release_notes.outputs.release_body }}
|
| 112 |
releaseDraft: false
|
| 113 |
prerelease: false
|
| 114 |
args: ${{ matrix.args }}
|