From 0aec3b45abc8528aa929d88de49d7ac0d899e210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Roth?= Date: Sat, 15 Feb 2025 19:25:35 +0100 Subject: [PATCH] WIP ci: add release notes test release --- .github/workflows/ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8085c6e3a0..058776581d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -200,7 +200,7 @@ jobs: .github/workflows/scripts/upload-artifacts.sh ci ${{ matrix.suite }} - name: "Publish release to aptly" - if: startsWith(github.event.ref, 'refs/tags') && steps.aptlycreds.outputs.FOUND == 'yes' + if: startsWith(github.event.ref, 'refs/tags') && steps.aptlycreds.outputs.FOUND == 'yes' && false env: APTLY_USER: ${{ secrets.APTLY_USER }} APTLY_PASSWORD: ${{ secrets.APTLY_PASSWORD }} @@ -259,12 +259,19 @@ jobs: run: | make binaries GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} + - name: Create Release Notes + run: | + echo "# Changes\n\n" > release-notes.md + dpkg-parsechangelog -S Changes | tail -n +4 >> release-notes.md + - name: "Upload Artifacts" uses: actions/upload-artifact@v4 if: startsWith(github.event.ref, 'refs/tags') with: name: aptly_${{ steps.releaseversion.outputs.VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }} - path: build/aptly_${{ steps.releaseversion.outputs.VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip + path: | + build/aptly_${{ steps.releaseversion.outputs.VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip + release-notes.md compression-level: 0 # no compression gh-release: @@ -283,3 +290,5 @@ jobs: uses: softprops/action-gh-release@v2 with: files: "out/**/aptly_*.zip" + body_path: "out/release-notes.md" +