2023-12-23 10:12:05 +00:00
|
|
|
name: Chart Releases
|
2023-10-20 11:29:42 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-10-20 12:15:36 +00:00
|
|
|
- main
|
2023-12-23 10:55:37 +00:00
|
|
|
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:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2023-10-28 06:40:58 +00:00
|
|
|
env:
|
2023-10-28 06:49:48 +00:00
|
|
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
2023-10-20 11:29:42 +00:00
|
|
|
|
|
|
|
- name: Configure Git
|
|
|
|
run: |
|
|
|
|
git config user.name "$GITHUB_ACTOR"
|
|
|
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
|
|
|
|
|
|
|
- name: Install Helm
|
|
|
|
uses: azure/setup-helm@v3
|
|
|
|
|
|
|
|
- name: Run chart-releaser
|
|
|
|
uses: helm/chart-releaser-action@v1.5.0
|
|
|
|
with:
|
|
|
|
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
|
|
|
|