From 6ca19ae281c46a441ab9feb2c39f292b7e402e12 Mon Sep 17 00:00:00 2001 From: Philipp Belitz Date: Tue, 19 Mar 2024 15:55:36 +0100 Subject: [PATCH] ci: fix publish job Fixes the publish job, the the charts are pushed into the fright dircetory. --- .github/workflows/.reusable-publish.yml | 9 ++++----- .github/workflows/publish.yml | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/.reusable-publish.yml b/.github/workflows/.reusable-publish.yml index f3e9d9dc9..f859cceb4 100644 --- a/.github/workflows/.reusable-publish.yml +++ b/.github/workflows/.reusable-publish.yml @@ -38,17 +38,16 @@ jobs: CHART_VERSION="${{ inputs.chart_version }}" helm package charts/connaisseur git checkout . # Remove changes to Chart for git checkout - mkdir -p tmp_charts - mv connaisseur*.tgz ./tmp_charts git checkout gh-pages - cd tmp_charts + mv connaisseur*.tgz ./charts + cd ./charts helm repo index . --url https://sse-secure-systems.github.io/connaisseur/charts cd .. - git add ./tmp_charts + git add ./charts git commit -m "Publish helm chart ${CHART_VERSION}" git push https://${{ secrets.GITHUB_TOKEN }}@github.com/sse-secure-systems/connaisseur.git publish_docs: uses: ./.github/workflows/.reusable-docs.yaml permissions: - contents: write \ No newline at end of file + contents: write diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0044b8e60..f8bbdd523 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,4 +15,4 @@ jobs: permissions: contents: write with: - chart_version: ${{ needs.build.outputs.chart_version }} \ No newline at end of file + chart_version: ${{ inputs.chart_version }}