Merge pull request #3 from FuelLabs/helm/update-helm-chart-name #3
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: Build and publish Helm Chart | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'helm/forc.pub/Chart.yaml' | |
permissions: | |
contents: read | |
jobs: | |
helm-release: | |
name: Build Helm Chart | |
runs-on: buildjet-4vcpu-ubuntu-2204 | |
if: | | |
(github.event_name == 'release' && github.event.action == 'published') || | |
github.ref == 'refs/heads/master' || github.event_name == 'pull_request' | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Package and Push Charts | |
uses: bsord/[email protected] | |
with: | |
useOCIRegistry: true | |
registry-url: oci://ghcr.io/fuellabs/helmcharts | |
username: ${{ github.repository_owner }} | |
access-token: ${{ secrets.GITHUB_TOKEN }} | |
force: true | |
chart-folder: ./helm/forc.pub |