From dc16e4315412191940ad73371495b6fc372b658e Mon Sep 17 00:00:00 2001 From: Athou Date: Mon, 12 Aug 2024 16:47:32 +0200 Subject: [PATCH] add release ci job --- .github/workflows/{build.yml => ci.yml} | 33 +++++++++++++++++++++++++ commafeed-server/TODO.md | 3 --- 2 files changed, 33 insertions(+), 3 deletions(-) rename .github/workflows/{build.yml => ci.yml} (78%) diff --git a/.github/workflows/build.yml b/.github/workflows/ci.yml similarity index 78% rename from .github/workflows/build.yml rename to .github/workflows/ci.yml index 248c9d9e..d131e3a0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/ci.yml @@ -119,3 +119,36 @@ jobs: inputs: athou/commafeed:master images: athou/commafeed:master-native,athou/commafeed:master-jvm push: true + + release: + runs-on: ubuntu-latest + needs: build + if: github.ref_type == 'tag' + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Download artifacts + uses: actions/download-artifact@v4 + with: + pattern: commafeed-* + path: ./artifacts + merge-multiple: true + + - name: Extract Changelog Entry + uses: mindsers/changelog-reader-action@v2 + id: changelog_reader + with: + version: ${{ github.ref_name }} + + - name: Create GitHub release + uses: softprops/action-gh-release@v2 + with: + name: CommaFeed ${{ github.ref_name }} + body: ${{ steps.changelog_reader.outputs.changes }} + draft: false + prerelease: false + files: ./artifacts/* diff --git a/commafeed-server/TODO.md b/commafeed-server/TODO.md index d83f4102..b314b87a 100644 --- a/commafeed-server/TODO.md +++ b/commafeed-server/TODO.md @@ -3,9 +3,6 @@ TODO MVP: -- update github actions - - release after tag - - new job that downloads all artifacts because we need them all to create the release - update readme - update docker readme - update release notes (+ mention h2 migration has been removed, upgrade to last 4.x is required)