Skip to content

Commit 40eac4a

Browse files
bors[bot]carlreid
andauthored
Merge #57
57: Add workflow to release chart and expose via GitHub Pages r=eskombro a=carlreid This workflow makes use of the [helm/chart-releaser-action](https://github.com/helm/chart-releaser-action) which will automatically create a git tag whenever the the chart `version` changes. This will cause a release to be deployed under your [releases](https://github.com/meilisearch/meilisearch-kubernetes/releases) with a referenced `tgz` of the chart ([example](https://github.com/carlreid/meilisearch-kubernetes/releases/tag/meilisearch-0.1.12)). After that, the action will create/update and index.yaml on the `gh-pages` branch ([example](https://github.com/carlreid/meilisearch-kubernetes/tree/gh-pages)) and allow people to use `helm repo add meilisearch https://meilisearch.github.io/meilisearch-kubernetes` **Note:** You'll want to create a `gh-pages` branch first before merging this. You can create an empty branch like this: `git checkout --orphan gh-pages` `git rm -rf .` I also created an `index.md` ([example](https://github.com/carlreid/meilisearch-kubernetes/blob/gh-pages/index.md)) which you could use to add some instructions. Here's [what it could like](https://carlreid.github.io/meilisearch-kubernetes/). Once you push the new branch, then modify the repo settings to be like: ![image](https://user-images.githubusercontent.com/33623601/111165354-3925b980-859f-11eb-9a59-7bec9f5aa9d0.png) Then all should be good 🙈 Resolves #13 Co-authored-by: Carl Reid <carl.reid@bestseller.com>
2 parents 9da86e1 + 5361774 commit 40eac4a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release-chart.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release Chart
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
helm-release-chart:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Configure Git
17+
run: |
18+
git config user.name "$GITHUB_ACTOR"
19+
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
20+
21+
- name: Run chart-releaser
22+
uses: helm/chart-releaser-action@v1.2.0
23+
env:
24+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)