diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8085c6e3a0..148533c205 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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') +# 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: @@ -272,7 +279,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: false needs: ci-binary-build - if: startsWith(github.event.ref, 'refs/tags') +# if: startsWith(github.event.ref, 'refs/tags') steps: - name: "Download Artifacts" uses: actions/download-artifact@v4 @@ -283,3 +290,5 @@ jobs: uses: softprops/action-gh-release@v2 with: files: "out/**/aptly_*.zip" + body_path: "out/release-notes.md" +