Skip to content

Commit

Permalink
CI: create draft release with artifacts for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ntap-fge committed Dec 4, 2023
1 parent c211dd5 commit 1bed361
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/release_template.md
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1bed361

Please sign in to comment.