Skip to content

.github: publish unstable Helm charts. #1

.github: publish unstable Helm charts.

.github: publish unstable Helm charts. #1

name: Publish Helm Charts
on:
release:
types:
- published
push:
branches:
- "unstable-helm-charts"
- main
env:
IS_RELEASE: ${{ github.event_name != 'push' && 'true' || 'false' }}
concurrency:
group: gh-pages
cancel-in-progress: false
jobs:
release:
if: ${{ github.env.IS_RELEASE == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
- name: Install Helm
uses: azure/[email protected]
- name: Run chart publisher script
run: ./scripts/build/helm-publisher.sh ${{ join(github.event.release.assets.*.browser_download_url, ' ') }}
shell: bash
- name: Push
run: |
git push https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
unstable:
if: ${{ github.env.IS_RELEASE != 'true' }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
- name: Install Helm
uses: azure/[email protected]
- name: Run chart publisher script
run: ./scripts/build/helm-publisher.sh --unstable
shell: bash
- name: Push
run: |
git push https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash