From d34dc65352f3935cdca10c75c7d59dee3a9fa97a 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 +++++++++++-- Releasing.md | 9 +++++---- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8085c6e3a0..1bb1bf7e62 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 }} @@ -209,7 +209,7 @@ jobs: ci-binary-build: name: "Build" - needs: test + # needs: test runs-on: ubuntu-latest strategy: matrix: @@ -274,12 +274,21 @@ jobs: needs: ci-binary-build if: startsWith(github.event.ref, 'refs/tags') steps: + - name: "Checkout repository" + uses: actions/checkout@v4 + - name: "Download Artifacts" uses: actions/download-artifact@v4 with: path: out/ + - name: "Create Release Notes" + run: | + echo "# Changes\n\n" > out/release-notes.md + dpkg-parsechangelog -S Changes | tail -n +4 >> out/release-notes.md + - name: "Release" uses: softprops/action-gh-release@v2 with: files: "out/**/aptly_*.zip" + body_path: "out/release-notes.md" diff --git a/Releasing.md b/Releasing.md index 81156b7af4..459c0d0b02 100644 --- a/Releasing.md +++ b/Releasing.md @@ -3,13 +3,14 @@ - create branch release/1.x.y - update debian/changelog - create PR, merge when approved -- on updated master, git tag and push: +- on updated master, create release: ``` version=$(dpkg-parsechangelog -S Version) + echo Releasing prod version $version git tag -a v$version -m 'aptly: release $version' - git push aptly-dev v$version + git push origin v$version master ``` -- run swagger locally -- add generated swagger-1.x.y.json to www.aptly.info +- run swagger locally (`make docker-serve`) +- copy generated docs/swagger.json to https://github.com/aptly-dev/www.aptly.info/tree/master/static/swagger/aptly_1.x.y.json - releae www.aptly.info - create release announcement on https://github.com/aptly-dev/aptly/discussions