Remove TypeScript
Chart releaser action
A GitHub action to turn a GitHub repo into a self-hosted Helm chart repo, using helm/chart-releaser CLI tool.
Usage
Pre-requisites
- A GitHub repo containing a directory with your Helm charts (eg:
/charts) - A GitHub token
- Create a workflow
.ymlfile in your.github/workflowsdirectory. An example workflow is available below. For more information, reference the GitHub Help Documentation for Creating a workflow file.
Inputs
For more information on these inputs, see the API Documentation
charts-dir: The charts directorycharts-repo-url: The GitHub Pages URL to the charts repo (default:https://<owner>.github.io/<repo>)token: The GitHub token
Example workflow
Create a workflow (eg: .github/workflows/chart-testing.yml see Creating a Workflow file):
name: chart actions
on:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1
with:
token: "${{ secrets.GITHUB_TOKEN }}"
This uses @helm/chart-releaser-action to turn a GitHub repo into a self-hosted Helm chart repo. It does this – during every push to master – by checking each chart in your GitHub repo, and whenever there's a new chart version, creates a corresponding GitHub release named for the chart version, adds Helm chart artifacts to the release, and creates or updates an index.yaml file with metadata about those releases which is then hosted on GitHub Pages.
Code of conduct
Participation in the Helm community is governed by the Code of Conduct.