2023-09-15 10:29:02 +00:00
|
|
|
name: gh-pages
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published, edited]
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: gh-pages
|
|
|
|
|
2024-10-14 18:59:54 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2023-09-15 10:29:02 +00:00
|
|
|
jobs:
|
|
|
|
update-helm-repo:
|
|
|
|
name: Update gh-pages helm repo index
|
|
|
|
runs-on: ubuntu-latest
|
2024-10-14 18:59:54 +00:00
|
|
|
permissions:
|
|
|
|
contents: write
|
2023-09-15 10:29:02 +00:00
|
|
|
steps:
|
|
|
|
- name: Install Helm
|
2024-04-29 16:04:54 +00:00
|
|
|
uses: azure/setup-helm@v4
|
2023-09-15 10:29:02 +00:00
|
|
|
with:
|
|
|
|
version: 3.12.3
|
|
|
|
|
|
|
|
- name: Check out repo
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Update repo index
|
|
|
|
run: |
|
|
|
|
git config user.name "Github Actions"
|
|
|
|
git config user.email "no-reply@github.com"
|
|
|
|
./scripts/github/update-helm-repo.sh ${{ join(github.event.release.assets.*.browser_download_url, ' ') }}
|
|
|
|
|
|
|
|
- name: Push
|
|
|
|
run: git push -f https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} gh-pages
|