.github/workflows/release.yaml #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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*.*.*' ] |