Skip to content

.github/workflows/release.yaml #31

.github/workflows/release.yaml

.github/workflows/release.yaml #31

Workflow file for this run

# See https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions
# and https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-static-site-generators-with-nodejs :
---
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 # https://github.com/actions/checkout
- uses: azure/setup-helm@v4 # https://github.com/azure/setup-helm
- name: Package and index Helm chart
run: |
set -o errexit -o nounset -o pipefail
helm package . --destination dist
curl --fail --output-dir dist --remote-name --silent https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/index.yaml
helm repo index dist --merge dist/index.yaml --url https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}
- uses: peaceiris/actions-gh-pages@v3 # https://github.com/peaceiris/actions-gh-pages
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
keep_files: true
publish_dir: dist
on:
push:
# Publish semver tags as releases:
tags: [ 'v*.*.*' ]