From 2457d51a55db1fedb3008fe2aa4c12fc09bcc28c Mon Sep 17 00:00:00 2001 From: Rhea Danzey Date: Fri, 20 Sep 2024 09:09:38 -0500 Subject: [PATCH 1/2] Add release trigger for gh-pages rebuild --- .github/workflows/gh-pages.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 30f55b7c8b..c140cf58be 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -8,6 +8,12 @@ on: paths: - 'docs/**' # only execute if we have docs changes + # Helm charts don't push to repo anymore, they index to GH release files now + # as such, docs/** changes won't trigger it, leaving the newly released chart out of the index until gh-pages pipeline runs + # we can rebuild when a release is published + release: + types: [published] + # Allows you to run this workflow manually from the Actions tab workflow_dispatch: From 6ffed4c990a156f75071a4e26aab1660dfb95d79 Mon Sep 17 00:00:00 2001 From: Rhea Danzey Date: Fri, 20 Sep 2024 10:26:52 -0500 Subject: [PATCH 2/2] Try invoking via workflow dispatch instead Signed-off-by: Rhea Danzey --- .github/workflows/gh-pages.yml | 6 ------ .github/workflows/helm.yml | 10 ++++++++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index c140cf58be..30f55b7c8b 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -8,12 +8,6 @@ on: paths: - 'docs/**' # only execute if we have docs changes - # Helm charts don't push to repo anymore, they index to GH release files now - # as such, docs/** changes won't trigger it, leaving the newly released chart out of the index until gh-pages pipeline runs - # we can rebuild when a release is published - release: - types: [published] - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: diff --git a/.github/workflows/helm.yml b/.github/workflows/helm.yml index 10eb7c0205..4be452ae84 100644 --- a/.github/workflows/helm.yml +++ b/.github/workflows/helm.yml @@ -39,3 +39,13 @@ jobs: config: helm/cr.yaml charts_dir: helm/ mark_as_latest: false + + invoke_pages_build: + runs-on: ubuntu-latest + steps: + - name: Invoke gh-pages build and deploy + env: + WORKFLOW_PATH: .github/workflows/gh-pages.yml + WORKFLOW_TARGET_REF: "gh-pages" + run: | + gh workflow run ${WORKFLOW_PATH} --ref ${WORKFLOW_TARGET_REF} \ No newline at end of file