@@ -225,11 +225,18 @@ jobs:
225
225
uses : actions/setup-go@v2
226
226
with :
227
227
go-version : ${{ needs.checks.outputs.go_version }}
228
+ - name : Publish Release Notes on new tag
229
+ uses : release-drafter/release-drafter@v5
230
+ with :
231
+ publish : true
232
+ env :
233
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
234
+ if : ${{ startsWith(github.ref, 'refs/tags/') }}
228
235
- name : Build binaries
229
236
uses : goreleaser/goreleaser-action@v2
230
237
with :
231
238
version : latest
232
- args : build --rm-dist --id kubernetes-ingress ${{ github.event_name == 'pull_request' && '--single-target ' || '' }} ${{ !startsWith( github.ref, 'refs/tags/') && '--snapshot ' || '' }}
239
+ args : ${{ !startsWith( github.ref, 'refs/tags/') && 'build --snapshot ' || 'release ' }} ${{ github.event_name == 'pull_request' && '--single-target ' || '' }} --rm-dist --id kubernetes-ingress
233
240
env :
234
241
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
235
242
GOPATH : ${{ needs.check.outputs.go_path }}
@@ -400,16 +407,3 @@ jobs:
400
407
git -c user.name='${{ env.GIT_NAME }}' -c user.email='${{ env.GIT_MAIL }}' \
401
408
commit -m "NGINX Ingress Controller - Release ${{ needs.package-helm.outputs.type }} ${{ needs.package-helm.outputs.version }}"
402
409
git push -u origin master
403
-
404
- publish-release-notes :
405
- name : Publish Release Notes
406
- runs-on : ubuntu-20.04
407
- needs : release-helm
408
- if : ${{ startsWith(github.ref, 'refs/tags/') }}
409
- steps :
410
- - name : Publish Release Notes
411
- uses : release-drafter/release-drafter@v5
412
- with :
413
- publish : true
414
- env :
415
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments