diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index a3a5a87..29793f4 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -93,12 +93,23 @@ jobs: if: startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Generate Changelog + run: | + # Get commits since the last tag (or since the beginning) + git log --oneline $(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || git rev-list --max-parents=0 HEAD)..HEAD > changelog.txt + - name: Download Artifacts uses: actions/download-artifact@v3 - name: Create Release uses: softprops/action-gh-release@v1 with: + body_path: changelog.txt files: | ts3-tui-windows-zip/ts3-tui-windows-x86_64.zip ts3-tui-linux-binaries/*