Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions .github/workflows/release_chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,37 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"

- name: Package local chart dependencies
- name: Package charts
run: |
mkdir -p charts/matrixone-operator/charts
mkdir -p charts/matrixone-operator/charts .cr-release-packages .cr-index
helm package charts/kruise \
--destination charts/matrixone-operator/charts
helm package charts/kruise \
--destination .cr-release-packages
helm package charts/matrixone-operator \
--destination .cr-release-packages

- name: Run Artifact Hub lint
run: |
curl -s https://api.github.com/repos/artifacthub/hub/releases/latest | grep -E 'browser_download_url' | grep linux_amd64.tar.gz\" | grep -Eo 'https://[^\"]*' | xargs wget -O - | tar -xz
./ah lint -p charts/matrixone-operator || exit 1
rm -f ./ah

- name: Run chart-releaser
- name: Install chart-releaser
uses: helm/chart-releaser-action@98bccfd32b0f76149d188912ac8e45ddd3f8695f # tag=v1.4.1
with:
charts_dir: charts
install_only: true
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Publish charts
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_RELEASE_NAME_TEMPLATE: "chart-{{ .Version }}"
CR_SKIP_EXISTING: true
run: |
owner="${GITHUB_REPOSITORY%%/*}"
repo="${GITHUB_REPOSITORY#*/}"
cr upload -o "$owner" -r "$repo" -c "$GITHUB_SHA"
cr index -o "$owner" -r "$repo" \
-c "https://${owner}.github.io/${repo}" --push
Loading