@@ -273,18 +273,11 @@ jobs:
273273 uses : actions/setup-go@v2
274274 with :
275275 go-version : ${{ needs.checks.outputs.go_version }}
276- - name : Publish Release Notes on new tag
277- uses : release-drafter/release-drafter@v5
278- with :
279- publish : true
280- env :
281- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
282- if : ${{ startsWith(github.ref, 'refs/tags/') }}
283276 - name : Build binaries
284277 uses : goreleaser/goreleaser-action@v2
285278 with :
286279 version : latest
287- args : ${{ !startsWith(github.ref, 'refs/tags/') && ' build --snapshot' || 'release' }} ${{ github.event_name == 'pull_request' && '--single-target' || '' }} --rm-dist ${{ !startsWith(github.ref, 'refs/tags/') && '--id kubernetes-ingress ' || '' }}
280+ args : build --rm-dist --id kubernetes-ingress ${{ github.event_name == 'pull_request' && '--single-target' || '' }} ${{ !startsWith(github.ref, 'refs/tags/') && '--snapshot ' || '' }}
288281 env :
289282 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
290283 GOPATH : ${{ needs.check.outputs.go_path }}
@@ -471,3 +464,16 @@ jobs:
471464 git -c user.name='${{ env.GIT_NAME }}' -c user.email='${{ env.GIT_MAIL }}' \
472465 commit -m "NGINX Ingress Controller - Release ${{ needs.package-helm.outputs.type }} ${{ needs.package-helm.outputs.version }}"
473466 git push -u origin master
467+
468+ publish-release-notes :
469+ name : Publish Release Notes
470+ runs-on : ubuntu-20.04
471+ needs : release-helm
472+ if : ${{ startsWith(github.ref, 'refs/tags/') }}
473+ steps :
474+ - name : Publish Release Notes
475+ uses : release-drafter/release-drafter@v5
476+ with :
477+ publish : true
478+ env :
479+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments