1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-17 13:58:21 +00:00
node-feature-discovery/.github/workflows/release.yml
Markus Lehtonen 3cb117d812 github: separate workflow for helm repo index update
No need to (re-)build documentation when a release is published.
Great simplification of the Helm repo index update script: do not scan
all releases but just get the assets from the release that was
published.

This separation should make the maintenance of scripts and workflows
easier.

(cherry picked from commit 72bf84c4fa)
2023-09-18 12:57:29 +03:00

31 lines
782 B
YAML

name: gh-pages
on:
release:
types: [published, edited]
concurrency:
group: gh-pages
jobs:
update-helm-repo:
name: Update gh-pages helm repo index
runs-on: ubuntu-latest
steps:
- name: Install Helm
uses: azure/setup-helm@v3
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