Skip to content

.github/workflows/release.yaml #27

.github/workflows/release.yaml

.github/workflows/release.yaml #27

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*.*.*' ]