Skip to content

try to test release

try to test release #4

name: Releases Charts
on:
push:
# branches:
# - release-*
paths:
- charts/kwok/Chart.yaml
- charts/stage-fast/Chart.yaml
env:
PUSH: 'true'
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
releases:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # important parameter for helm chart
- name: Install Helm
uses: azure/setup-helm@v4
- name: Login to GitHub Container Registry
run: |
helm registry login --username ${GITHUB_ACTOR} --password ${{ secrets.GITHUB_TOKEN }} ghcr.io
- name: Release oci charts to ghcr.io
env:
IMAGE_PREFIX: ghcr.io/${{ github.repository }}
run: |
make oci-charts
- name: Set up Git user
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Release charts
uses: helm/[email protected]
if: ${{ env.PUSH == 'true' }}
with:
packages_with_index: false
mark_as_latest: false
pages_branch: "gh-pages"
charts_dir: "charts"
env:
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}