Skip to content

feat(helm): add release action #5

feat(helm): add release action

feat(helm): add release action #5

Workflow file for this run

name: Release Charts
on:
push:
branches:
# - main
- feat/helm-release-action
env:
GO_VERSION: "1.21.5"
jobs:
release:
## if: startsWith(github.ref, 'refs/tags/chart-v') == true
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Generate operator chart
run: make helm
- name: Install Helm
uses: azure/setup-helm@v3
- name: Create releaser configuration
run: |
cat <<EOF > cr.yaml
release-name-template: "chart-{{ .Version }}"
make-release-latest: false
EOF
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.6.0
with:
charts_dir: charts
config: cr.yaml
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"