chore(bors): merge pull request #718 #144
This file contains hidden or 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: Develop Helm Chart | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| paths: | |
| - 'chart/**' | |
| jobs: | |
| release-chart: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: cachix/install-nix-action@v31.3.0 | |
| - name: Pre-populate nix-shell | |
| run: | | |
| export NIX_PATH=nixpkgs=$(jq '.nixpkgs.url' nix/sources.json -r) | |
| echo "NIX_PATH=$NIX_PATH" >> $GITHUB_ENV | |
| nix-shell --pure --run "echo" ./scripts/helm/shell.nix | |
| - name: Check if the chart is publishable | |
| run: | | |
| branch="${{ github.ref_name }}" | |
| nix-shell --pure --run "./scripts/helm/publish-chart-yaml.sh --check-chart "$branch"" ./scripts/helm/shell.nix | |
| - name: Publish Mayastor Helm chart | |
| uses: stefanprodan/helm-gh-pages@v1.7.0 | |
| env: | |
| TMPDIR: /tmp | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| charts_dir: . |