Skip to content

Release Charts

Release Charts #118

Workflow file for this run

name: Release Charts
on:
workflow_dispatch:
inputs:
spiceai_branch:
description: 'Release branch in spiceai/spiceai'
required: true
default: 'release/1.X'
type: string
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 spiceai/helm-charts
uses: actions/checkout@v4
with:
path: helm-charts
fetch-depth: 0
- name: Checkout spiceai/spiceai
uses: actions/checkout@v4
with:
path: spiceai
repository: spiceai/spiceai
ref: ${{ github.event.inputs.spiceai_branch }}
fetch-depth: 0
- name: Configure Git
working-directory: helm-charts
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v4
- name: Install chart-releaser
uses: ./helm-charts/.github/actions/chart-releaser-installer
- name: Release Charts
working-directory: helm-charts
env:
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cr version
cr package ../spiceai/deploy/chart
cr upload --owner spiceai --git-repo helm-charts --token $CR_TOKEN --push --skip-existing
cr index --owner spiceai --git-repo helm-charts --index-path . --token $CR_TOKEN --push