Commit d2d4c28
authored
ci: update GitHub Actions workflow to streamline Helm chart publishing to gh-pages (#218)
This pull request updates the GitHub Actions workflow for publishing
Helm chart packages, simplifying the deployment process and improving
how the Helm repo index is managed. The workflow now directly publishes
artifacts to the `gh-pages` branch, removing the previous multi-step
deployment to GitHub Pages and associated permissions.
**Workflow and deployment simplification:**
* Removed unnecessary `pages: write` and `id-token: write` permissions
from the workflow, reflecting the new deployment approach.
* Replaced the "Build Helm repo index for Pages" step with "Build Helm
repo index for gh-pages", adding logic to fetch and merge the existing
index from the `gh-pages` branch if present. This ensures the Helm repo
index is correctly updated and avoids overwriting previous entries.
**Direct publishing to `gh-pages`:**
* Replaced the upload and deploy steps for GitHub Pages with a single
step using `peaceiris/actions-gh-pages@v4` to publish the Helm repo
directly to the `gh-pages` branch, simplifying the workflow and
eliminating the need for a separate deploy job.1 parent 9054d0c commit d2d4c28
1 file changed
Lines changed: 17 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
101 | 99 | | |
102 | 100 | | |
103 | 101 | | |
104 | | - | |
| 102 | + | |
105 | 103 | | |
106 | 104 | | |
107 | 105 | | |
108 | 106 | | |
109 | 107 | | |
110 | 108 | | |
111 | 109 | | |
112 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
113 | 120 | | |
114 | 121 | | |
115 | | - | |
116 | | - | |
| 122 | + | |
| 123 | + | |
117 | 124 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
0 commit comments