Skip to content

Commit

Permalink
WIP ci: add release notes
Browse files Browse the repository at this point in the history
test release
  • Loading branch information
neolynx committed Feb 15, 2025
1 parent 1abb735 commit 9f6bcf8
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,20 +259,27 @@ 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:
name: "Github Release"
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
Expand All @@ -283,3 +290,5 @@ jobs:
uses: softprops/action-gh-release@v2
with:
files: "out/**/aptly_*.zip"
body_path: "out/release-notes.md"

0 comments on commit 9f6bcf8

Please sign in to comment.