mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-05-23 02:01:32 +00:00
Trigger the helm release workflow automatically on tag pushes so each software release also publishes the chart to gh-pages and the OCI registry at ghcr.io/seaweedfs. workflow_dispatch is kept as a manual fallback. Refs #6296
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
name: "helm: release"
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
pages: write
|
|
packages: write
|
|
|
|
jobs:
|
|
helm-release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Publish Helm charts to github pages
|
|
uses: stefanprodan/helm-gh-pages@v1.7.0
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
charts_dir: k8s/charts
|
|
target_dir: helm
|
|
branch: gh-pages
|
|
helm_version: "3.18.4"
|
|
|
|
- name: Publish Helm charts to github container registry (ghcr.io)
|
|
uses: bitdeps/helm-oci-charts-releaser@v0.1.5
|
|
with:
|
|
charts_dir: k8s/charts
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
oci_registry: ghcr.io/${{ github.repository_owner }}
|
|
oci_username: github-actions
|
|
oci_password: ${{ secrets.GITHUB_TOKEN }}
|
|
skip_dependencies: true
|
|
skip_helm_install: true
|
|
skip_gh_release: true
|