charts/.github/workflows/build-and-publish.yml

44 lines
1 KiB
YAML
Raw Normal View History

2023-12-23 10:12:05 +00:00
name: Chart Releases
2023-10-20 11:29:42 +00:00
on:
push:
branches:
2023-12-25 18:26:30 +00:00
- main
paths:
- 'charts/**'
2023-10-20 12:11:19 +00:00
# tags:
# - "v*.*.*"
2023-10-20 11:29:42 +00:00
jobs:
release:
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
permissions:
contents: write
runs-on: ubuntu-latest
steps:
2023-12-25 18:26:30 +00:00
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2023-10-20 11:29:42 +00:00
2023-12-25 18:26:30 +00:00
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
2023-10-20 11:29:42 +00:00
2023-12-25 18:26:30 +00:00
- name: Install Helm
uses: azure/setup-helm@v3
2023-10-20 11:29:42 +00:00
2023-12-25 18:26:30 +00:00
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.5.0
with:
skip_existing: "true"
charts_dir: charts
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2023-10-20 12:30:12 +00:00
2023-10-20 12:31:10 +00:00