From 2f861114981d6443c3f1881cca764912d809a3c8 Mon Sep 17 00:00:00 2001 From: Kim Brose Date: Mon, 2 Dec 2024 18:25:45 +0100 Subject: [PATCH] publish tags for helm chart Signed-off-by: Kim Brose --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b559bac23..e6cef024f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,6 +103,17 @@ jobs: app_id: ${{ secrets.GH_APP_OS_APP_ID }} private_key: ${{ secrets.GH_APP_OS_PRIVATE_KEY }} + - name: Create Helm chart release + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + run: | + chart_version="$(yq '.version' charts/matrix-neoboard-widget/Chart.yaml)" + tag="@nordeck/matrix-neoboard-helm-chart@${chart_version}" + if [[ $(git tag | grep "$tag") == "" ]] + then + git tag "$tag" + git push origin tag "$tag" + fi + - name: Create Release Pull Request or Publish Packages if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} uses: changesets/action@c8bada60c408975afd1a20b3db81d6eee6789308 # @v1.4.9