Update build-and-publish.yml

This commit is contained in:
Tommy 2023-12-25 19:26:30 +01:00
parent e68832c369
commit 0a59aeeab5
No known key found for this signature in database

View file

@ -3,7 +3,7 @@ name: Chart Releases
on: on:
push: push:
branches: branches:
- main - main
paths: paths:
- 'charts/**' - 'charts/**'
# tags: # tags:
@ -17,26 +17,27 @@ jobs:
contents: write contents: write
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
env: env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Configure Git - name: Configure Git
run: | run: |
git config user.name "$GITHUB_ACTOR" git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com" git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Install Helm - name: Install Helm
uses: azure/setup-helm@v3 uses: azure/setup-helm@v3
- name: Run chart-releaser - name: Run chart-releaser
uses: helm/chart-releaser-action@v1.5.0 uses: helm/chart-releaser-action@v1.5.0
with: with:
charts_dir: charts skip_existing: "true"
env: charts_dir: charts
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"