Listory/.github/workflows/helm-repo-index.yaml
renovate[bot] c42c7fae06
chore(deps): update actions/checkout action to v4 (#295)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-16 13:07:44 +02:00

37 lines
1.2 KiB
YAML

name: Helm repo index
on: release
jobs:
publish:
name: Publish helm repo index to gh-pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install chart-releaser
env:
VERSION: 1.0.0-beta.1
run: |
mkdir -p $GITHUB_WORKSPACE/bin
curl -Lo $GITHUB_WORKSPACE/cr.tar.gz https://github.com/helm/chart-releaser/releases/download/v${VERSION}/chart-releaser_${VERSION}_linux_amd64.tar.gz
tar -xzf $GITHUB_WORKSPACE/cr.tar.gz -C $GITHUB_WORKSPACE/bin cr
chmod +x $GITHUB_WORKSPACE/bin/cr
echo "::add-path::$GITHUB_WORKSPACE/bin"
- name: Generate index.yaml
run: |
mkdir .helm-index
cr index \
--charts-repo https://apricote.github.io/Listory
--package-path charts
--owner owner
--git-repo Listory
--index-path .helm-index/index.yaml
- name: Publish to gh-pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: .helm-index # The folder the action should deploy.