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 0aec3b4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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:
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 0aec3b4

Please sign in to comment.