From 8b6a54627dc5cf705d1f07576fda77c275e9f236 Mon Sep 17 00:00:00 2001 From: Sebastien THOMAS Date: Fri, 20 May 2022 08:13:32 -0400 Subject: [PATCH] added chart release workflow Signed-off-by: Sebastien THOMAS --- .github/workflows/ci.yaml | 8 +++++++- .github/workflows/release-chart.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release-chart.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 94bdc94..0051a70 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,5 +1,11 @@ name: ci -on: [push, pull_request] +on: + push: + branches-ignore: + - 'gh-pages' + pull_request: + branches-ignore: + - 'gh-pages' jobs: tests: runs-on: ubuntu-latest diff --git a/.github/workflows/release-chart.yml b/.github/workflows/release-chart.yml new file mode 100644 index 0000000..ebfdd49 --- /dev/null +++ b/.github/workflows/release-chart.yml @@ -0,0 +1,27 @@ +name: Release Charts + +on: + push: + branches: + - master + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Configure Git + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.4.0 + with: + charts_dir: docs + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file