Skip to content

Commit

Permalink
docs: add release chart docs
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
  • Loading branch information
eddycharly committed Nov 6, 2024
1 parent c4a809e commit 7fc5e31
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/helm-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ permissions: {}
on:
push:
tags:
- 'chart-v*'
- 'charts-v*'

jobs:
chart-releaser:
charts-releaser:
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -24,8 +24,8 @@ jobs:
run: |
set -e
TAG=${{ github.ref_name }}
echo "CHART_VERSION=${TAG#chart-}" >> $GITHUB_ENV
- name: Run chart-releaser
echo "CHART_VERSION=${TAG#charts-}" >> $GITHUB_ENV
- name: Run charts releaser
uses: stefanprodan/helm-gh-pages@0ad2bb377311d61ac04ad9eb6f252fb68e207260 #v1.7.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
14 changes: 14 additions & 0 deletions docs/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ git tag $TAG -m "tag $TAG" -a
git push origin $TAG
```

## Publish chart

Publishing the chart for a release is decoupled from cutting a release.

To publish the chart push a tag to the GitHub repository (beginning with `charts-v`).

```shell
VERSION="v0.0.1"
TAG=charts-$VERSION

git tag $TAG -m "tag $TAG" -a
git push origin $TAG
```

## Publish documentation

Publishing the documentation for a release is decoupled from cutting a release.
Expand Down

0 comments on commit 7fc5e31

Please sign in to comment.