Annoyingly OCI repos aren't cached by helm/helmfile, switch to gh-pages #34
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
name: Release Chart | |
on: | |
pull_request: | |
paths: | |
- charts/** | |
- .github/workflows/release-chart.yaml | |
push: | |
branches: | |
- main | |
paths: | |
- charts/** | |
- .github/workflows/release-chart.yaml | |
jobs: | |
release: | |
name: Release chart to repo | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Helm | |
uses: azure/setup-helm@v1 | |
with: | |
version: v3.12.2 | |
- name: Add -<sha> to version in charts/housewatch/Chart.yaml and update Chart.lock | |
if: github.ref != 'refs/heads/main' | |
run: | | |
sed -i 's/^version: \(.*\)$/version: \1-${{ github.sha }}/g' charts/housewatch/Chart.yaml | |
- name: Run chart-releaser | |
uses: helm/chart-releaser-action@ed43eb303604cbc0eeec8390544f7748dc6c790d | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
GIT_COMMITTER_NAME: Max Hedgehog | |
GIT_COMMITTER_EMAIL: 127861667+max-hedgehog[bot]@users.noreply.github.com | |
with: | |
skip_existing: true |