File tree Expand file tree Collapse file tree 2 files changed +42
-42
lines changed
Expand file tree Collapse file tree 2 files changed +42
-42
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Helm chart (gh-pages)
2+
3+ on :
4+ workflow_dispatch : {}
5+
6+ jobs :
7+ release :
8+ name : Package and publish charts to gh-pages
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Checkout
12+ uses : actions/checkout@v4
13+
14+ - name : Install Helm
15+ run : |
16+ set -eux
17+ HELM_VERSION=3.12.0
18+ curl -fsSL https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz -o helm.tar.gz
19+ tar -xzf helm.tar.gz
20+ sudo mv linux-amd64/helm /usr/local/bin/helm
21+ rm -rf linux-amd64 helm.tar.gz
22+
23+ - name : Package chart
24+ run : |
25+ rm -rf dist
26+ mkdir -p dist
27+ helm package . -d dist
28+
29+ - name : Compute charts repo URL
30+ run : |
31+ # Compute the GitHub Pages URL for this repository and export to the environment
32+ REPO_NAME=${GITHUB_REPOSITORY##*/}
33+ echo "CHARTS_REPO_URL=https://${GITHUB_REPOSITORY_OWNER}.github.io/${REPO_NAME}/" >> $GITHUB_ENV
34+
35+ - name : Publish charts to GitHub Pages (gh-pages)
36+ uses : helm/chart-releaser-action@v1
37+ with :
38+ charts_dir : dist
39+ release_branch : gh-pages
40+ charts_repo_url : ${{ github.event.inputs.charts_repo_url }}
41+ env :
42+ CR_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments