Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add release trigger for gh-pages rebuild #3432

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Try invoking via workflow dispatch instead
Signed-off-by: Rhea Danzey <[email protected]>
  • Loading branch information
Arkaniad committed Sep 20, 2024
commit 6ffed4c990a156f75071a4e26aab1660dfb95d79
6 changes: 0 additions & 6 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,13 @@ jobs:
config: helm/cr.yaml
charts_dir: helm/
mark_as_latest: false

invoke_pages_build:
runs-on: ubuntu-latest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need a needs: [ release ], as otherwise this might run concurrently with the release.

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}
Loading