-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add chart release workflow (#176)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
- Loading branch information
1 parent
c1b120f
commit c4a809e
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
|
||
name: Helm Release | ||
|
||
permissions: {} | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'chart-v*' | ||
|
||
jobs: | ||
chart-releaser: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pages: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | ||
- name: Install Helm | ||
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 | ||
- name: Set version | ||
run: | | ||
set -e | ||
TAG=${{ github.ref_name }} | ||
echo "CHART_VERSION=${TAG#chart-}" >> $GITHUB_ENV | ||
- name: Run chart-releaser | ||
uses: stefanprodan/helm-gh-pages@0ad2bb377311d61ac04ad9eb6f252fb68e207260 #v1.7.0 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
linting: off | ||
charts_dir: charts | ||
chart_version: ${{ env.CHART_VERSION }} |