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

38 lines
1,003 B
YAML
Raw Normal View History

2023-10-20 12:26:02 +00:00
name: Release Charts on Push to main
2023-10-20 11:29:42 +00:00
on:
push:
branches:
2023-10-20 12:15:36 +00:00
- main
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
- 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