Skip to content

wip: πŸ”• temporary commit #6

wip: πŸ”• temporary commit

wip: πŸ”• temporary commit #6

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
# docs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
name: πŸ§ͺ Chart
on:
workflow_dispatch: {}
push:
branches: [feat/helm] # TODO: change to [master, main]
paths-ignore: ['**.md']
pull_request:
paths-ignore: ['**.md']
concurrency:
group: ${{ github.ref }}-charts
cancel-in-progress: true
jobs:
pack:
name: Pack the Helm chart
runs-on: ubuntu-latest
defaults: {run: {working-directory: ./chart}}
steps:
- uses: actions/checkout@v4
- uses: azure/setup-helm@v4
- run: helm package .
- uses: actions/upload-artifact@v4
with:
name: helm-chart
path: ./chart/*-[0-9].[0-9].[0.9].tgz
if-no-files-found: error
retention-days: 1
put:
name: Put the Helm chart to the GitHub pages branch
runs-on: ubuntu-latest
needs: [pack]
steps:
- uses: actions/checkout@v4
with: {ref: gh-pages}
- run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- uses: actions/download-artifact@v4
with: {name: helm-chart, path: ./charts}
- run: tree -H '.' --noreport --dirsfirst -T 'Index' --charset utf-8 -P "*.tgz" -o ./index.html
- run: |
git add '*.tgz' index.html
git commit -m "Add the helm chart"
git push origin gh-pages