From 1bed361fa11e0363110a97982d5d99e6ad72cda7 Mon Sep 17 00:00:00 2001 From: ntap-fge <117348352+ntap-fge@users.noreply.github.com> Date: Mon, 4 Dec 2023 10:21:04 +0100 Subject: [PATCH] CI: create draft release with artifacts for tags --- .github/release_template.md | 18 ++++++++++++++++++ .github/workflows/release.yml | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/release_template.md diff --git a/.github/release_template.md b/.github/release_template.md new file mode 100644 index 00000000..b17449a7 --- /dev/null +++ b/.github/release_template.md @@ -0,0 +1,18 @@ +This is release vVERSION of Vali. + +Vali is a fork of Loki 2.2.1 under the Apache 2.0 License. +It is currently limited to maintenance and security updates. + +### Notable changes + +* INSERT CHANGES HERE + +### Installation + +The components of Vali are currently distributed as container images. + +* `ghcr.io/credativ/vali:vVERSION` + https://github.com/credativ/vali/pkgs/container/vali + +* `ghcr.io/credativ/valitail:vVERSION` + https://github.com/credativ/vali/pkgs/container/valitail diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 08ac94ae..80207ce6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,3 +52,21 @@ jobs: name: logcli_${{ matrix.arch }} path: logcli_${{ matrix.arch }}.zip retention-days: 3 + + release: + runs-on: ubuntu-latest + needs: logcli + if: startsWith(github.event.ref, 'refs/tags/v') + permissions: + contents: write + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Create draft release + uses: ncipollo/release-action@v1 + with: + artifacts: "logcli_*.zip" + artifactErrorsFailBuild: true + bodyFile: ".github/release_template.md" + draft: true