From 3e61fec67c48e160a76f3ea2e24069e4b241a8f4 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Fri, 16 May 2025 21:42:56 +0300 Subject: [PATCH] ci: fix release workflow --- .gitea/workflows/release.yaml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index ec23a2c..78e20c9 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -35,12 +35,9 @@ jobs: with: go-version: '1.24' - - name: Generate changelog - run: | - echo "Changes: " > changelog.txt - echo "```" >> changelog.txt - git log $(git describe --tags --abbrev=0)..HEAD --oneline >> changelog.txt - echo "```" >> changelog.txt + - name: Get Changes between Tags + id: changes + uses: simbo/changes-between-tags-action@v1 - name: Set version run: | @@ -59,12 +56,12 @@ jobs: cp scripts/completion/bash ./out/completion/alr cp scripts/completion/zsh ./out/completion/_alr - tar -czvf alr-${{ env.VERSION }}-linux-x86_64.tar.gz -C out . + ( cd out && tar -czvf alr-${{ env.VERSION }}-linux-x86_64.tar.gz * ) - name: Release uses: akkuman/gitea-release-action@v1 with: - body_path: changelog.txt + body: ${{ steps.changes.outputs.changes }} files: |- alr-${{ env.VERSION }}-linux-x86_64.tar.gz