This GitHub Action is designed to publish the Langfuse Helm chart to Artifact Hub. It automates the process of packaging the Langfuse chart, updating the README.md
, and pushing the changes to the repository. The action is triggered manually via the workflow_dispatch
event.
The workflow consists of the following steps:
- Checkout the Repository: The repository is checked out to the local runner.
- Check for Existing Langfuse Package: The action checks if the
langfuse-${{ env.LANGFUSE_VERSION }}.tgz
file already exists. If it does, the workflow is stopped to prevent overwriting the existing package. - Download Langfuse Tar File: The action downloads the specified version of the Langfuse chart from the GitHub releases.
- Extract the Tar File: The downloaded
.tgz
file is extracted, and the directory structure is checked. - Replace the README File: The
README.md
file is replaced with the latest version from the repository. - Delete Tar File: The
.tgz
file is deleted after extracting. - Package the Chart: The Helm chart is packaged into a
.tgz
file. - Remove Langfuse Directory: The extracted Langfuse directory is removed after packaging.
- Create Index File: The Helm chart repository index is updated to reflect the new package.
- Push Changes to GitHub: The changes, including the packaged chart, updated
README.md
, andindex.yaml
, are committed and pushed to the repository.
-
Update the Version: Change the
LANGFUSE_VERSION
environment variable to the latest release version of the Langfuse repo.- Example: Update
LANGFUSE_VERSION: "1.1.0"
to the latest release version.
- Example: Update
-
Update the README File:
- Copy the latest version of the README from the Langfuse GitHub Repository.
- Paste it into the
./readme/README.md
file in the repository. - Important: Change the source URL in the README from
https://langfuse.github.io/langfuse-k8s
tohttps://skyu-io.github.io/langfuse-helm-chart
.
-
Run the GitHub Action: Trigger the action by running the workflow manually using the
workflow_dispatch
event in the GitHub Actions UI.
- If the package for the specified version already exists, the action will fail to prevent overwriting the existing chart.
- For more information on the Langfuse Helm chart, refer to the Langfuse GitHub Repository.