support cn cordon (#401) #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Chart Publish | |
on: | |
push: | |
branches: | |
- main | |
release: | |
types: | |
- published | |
permissions: read-all | |
jobs: | |
publish: | |
permissions: | |
contents: write # for helm/chart-releaser-action to push chart release and create a release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0 | |
with: | |
fetch-depth: 0 | |
- name: Install Helm | |
uses: azure/setup-helm@f382f75448129b3be48f8121b9857be18d815a82 # tag=v3.4 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- 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 | |
uses: helm/chart-releaser-action@98bccfd32b0f76149d188912ac8e45ddd3f8695f # tag=v1.4.1 | |
with: | |
charts_dir: charts | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
CR_RELEASE_NAME_TEMPLATE: "chart-{{ .Version }}" | |
CR_SKIP_EXISTING: true |