workaround for https://github.com/fluxcd/source-controller/issues/1605 #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# https://github.com/marketplace/actions/helm-chart-releaser | |
# https://blog.ediri.io/how-to-create-a-github-gh-pages-branch-in-an-existing-repository | |
# https://dev.to/jamiemagee/how-to-host-your-helm-chart-repository-on-github-3kd | |
name: "HELM-release" | |
on: | |
push: | |
branches: | |
- kit-ar/main | |
# pull_request: | |
# branches: | |
# - kit-ar/x--release | |
# types: | |
# - closed | |
# paths: | |
# - '.github/workflows/helm-release.chart-releaser.yaml' | |
# - 'charts/**/Chart.yaml' | |
env: | |
HELM_EXPERIMENTAL_OCI: 1 #enable OCI support | |
# HELM_VERSION_TO_INSTALL: 3.13.0 # version of HELM to install | |
# CHART_BASEDIR: ${{ github.workspace }}/helm | |
CHART_BASEDIR: helm | |
# GCR_IMAGE: ghcr.io/${{ github.repository_owner }}/cloudflare-tunnel | |
jobs: | |
build: | |
name: publish gcr | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Install Helm | |
uses: azure/[email protected] | |
with: | |
# version: ${{ env.HELM_VERSION_TO_INSTALL }} # default is latest | |
version: 'latest' # default is latest (stable) | |
token: ${{ secrets.GITHUB_TOKEN }} # only needed if version is 'latest' | |
- name: Run chart-releaser | |
uses: helm/[email protected] | |
with: | |
charts_dir: ${{ env.CHART_BASEDIR }} | |
# pages_branch: "kit-ar/gh-pages" | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |