9292 - 'tests/**'
9393 - 'playground/**'
9494
95-
9695 - name : evaluate - build
9796 id : evaluate_build
9897 run : |
@@ -136,17 +135,15 @@ jobs:
136135 fi
137136 echo "result=$result" >> $GITHUB_OUTPUT
138137
139-
140-
141138 build :
142139 name : build
143140 if : ${{ needs.discovery.outputs.build == 'true' }}
144141 needs : [discovery]
145142 runs-on : ubuntu-latest
146143 env :
147- build : ${{ needs.discovery.outputs.build }}
148- build_push : ${{ needs.discovery.outputs.build_push }}
149- build_configuration : ${{ needs.discovery.outputs.build_configuration }}
144+ build : ${{ needs.discovery.outputs.build }}
145+ build_push : ${{ needs.discovery.outputs.build_push }}
146+ build_configuration : ${{ needs.discovery.outputs.build_configuration }}
150147 gitVersion_SemVer : ${{ needs.discovery.outputs.gitVersion_SemVer }}
151148 gitVersion_AssemblySemFileVer : ${{ needs.discovery.outputs.gitVersion_AssemblySemFileVer }}
152149 steps :
@@ -157,7 +154,6 @@ jobs:
157154 run : |
158155 mkdir -p .artifacts/helm
159156 mkdir -p .artifacts/kubectl
160- mkdir -p .artifacts/artifacthub
161157
162158 - name : tools - dotnet - install
163159 uses : actions/setup-dotnet@v4
@@ -180,9 +176,7 @@ jobs:
180176 name : Test Results
181177 path : .artifacts/TestResults/*.trx
182178 reporter : dotnet-trx
183- fail-on-empty : ' false'
184-
185-
179+ fail-on-empty : " false"
186180
187181 # - name: tools - kubectl - install
188182 # uses: azure/setup-kubectl@v4
@@ -236,7 +230,7 @@ jobs:
236230 run : helm template --namespace kube-system ${{ env.helm_chart }} .artifacts/helm/${{ env.helm_chart }}-${{ env.gitVersion_SemVer }}.tgz > .artifacts/kubectl/${{ env.helm_chart }}.yaml
237231
238232 - name : helm - artifacthub - repo
239- run : install -D src/helm/artifacthub-repo.yaml .artifacts/artifacthub /artifacthub-repo.yaml
233+ run : install -D src/helm/artifacthub-repo.yaml .artifacts/helm /artifacthub-repo.yaml
240234
241235 - name : docker - build and push
242236 uses : docker/build-push-action@v6
@@ -249,7 +243,7 @@ jobs:
249243 labels : |
250244 org.opencontainers.image.source=https://github.com/${{ github.repository }}
251245 org.opencontainers.image.url=https://github.com/${{ github.repository }}
252- org.opencontainers.image.vendor=${{ github.repository_owner }}
246+ org.opencontainers.image.vendor=https://github.com/ ${{ github.repository_owner }}
253247 org.opencontainers.image.version=${{ env.gitVersion_SemVer }}
254248 org.opencontainers.image.revision=${{ github.sha }}
255249 tags : |
@@ -260,6 +254,30 @@ jobs:
260254 if : ${{ env.build_push == 'true' }}
261255 run : helm push .artifacts/helm/${{ env.helm_chart }}-${{ env.gitVersion_SemVer }}.tgz ${{ env.helm_chart_repository }}
262256
257+ - name : artifacts - helm - upload
258+ uses : actions/upload-artifact@v4
259+ with :
260+ name : artifacts-helm-${{env.gitVersion_SemVer}}
261+ path : .artifacts/helm
262+
263+ - name : artifacts - kubectl - upload
264+ uses : actions/upload-artifact@v4
265+ with :
266+ name : artifacts-kubectl-${{env.gitVersion_SemVer}}
267+ path : .artifacts/kubectl
268+
269+ release :
270+ name : release
271+ if : ${{ needs.discovery.outputs.release == 'true' }}
272+ needs : [discovery, build]
273+ runs-on : ubuntu-latest
274+ env :
275+ release : ${{ needs.discovery.outputs.release }}
276+ gitVersion_SemVer : ${{ needs.discovery.outputs.gitVersion_SemVer }}
277+ gitVersion_AssemblySemFileVer : ${{ needs.discovery.outputs.gitVersion_AssemblySemFileVer }}
278+ steps :
279+ - name : checkout
280+ uses : actions/checkout@v4
263281 # - name: oras - push - artifact hub metadata
264282 # if: ${{ needs.discovery.outputs.requiresRelease == 'true' }}
265283 # run: |
@@ -275,8 +293,6 @@ jobs:
275293 # --tag ${{ env.ghcrContainerImageRepository }}/${{ env.containerImage }}:latest \
276294 # ${{ env.ghcrContainerImageRepository }}/${{ env.containerImage }}:${{ env.gitVersion_SemVer }}
277295
278-
279-
280296 # - name: github - release - create
281297 # if: ${{ needs.discovery.outputs.requiresRelease == 'true' }}
282298 # uses: softprops/action-gh-release@v2
@@ -288,4 +304,4 @@ jobs:
288304 # generate_release_notes: true
289305 # token: ${{ secrets.ES_GITHUB_PAT }}
290306 # files: |
291- # .artifacts/kubectl/${{ env.helmChart }}.yaml
307+ # .artifacts/kubectl/${{ env.helmChart }}.yaml
0 commit comments