diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a14b0faf..803f00fa 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,6 +1,9 @@ name: Release Helm charts on: + pull_request: + branches: + - main push: branches: - main @@ -8,7 +11,7 @@ on: - '**/Chart.yaml' jobs: - get-list-of-charts: + get-list-of-charts: runs-on: ubuntu-latest name: 'Get list of charts to be released' outputs: @@ -41,11 +44,11 @@ jobs: echo "charts=$(jq 'split(" ")' -Rc <(echo ${charts[@]}))" >> "$GITHUB_OUTPUT" fi - release-charts: + release-charts: runs-on: ubuntu-latest needs: get-list-of-charts if: needs.get-list-of-charts.outputs.charts != 'none' - + strategy: matrix: chart: ${{ fromJson(needs.get-list-of-charts.outputs.charts) }} @@ -78,9 +81,9 @@ jobs: - name: Push Helm Chart uses: cloudsmith-io/action@v0.5.2 with: - api-key: ${{ secrets.CLOUDSMITH_API_KEY }} - command: "push" - format: "helm" - owner: "tyk" - repo: "helm" - file: "${{ steps.file-name.outputs.fileName }}" \ No newline at end of file + api-key: ${{ secrets.CLOUDSMITH_API_KEY }} + command: "push" + format: "helm" + owner: "tyk" + repo: "helm" + file: "${{ steps.file-name.outputs.fileName }}" \ No newline at end of file diff --git a/components/tyk-operator/Chart.yaml b/components/tyk-operator/Chart.yaml index 85439636..46595ea0 100644 --- a/components/tyk-operator/Chart.yaml +++ b/components/tyk-operator/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 name: tyk-operator description: A Helm chart to install the tyk-operator +version: 1.0.0 type: application -version: 1.0.0 # version of the chart