From 4c3ccbf1886d8cb3b3751e11fd48a296f974e4b2 Mon Sep 17 00:00:00 2001 From: Alexandr Cherepanov Date: Wed, 2 Apr 2025 16:07:40 +0500 Subject: [PATCH 01/12] update goreleaser configuration --- .gitignore | 3 +++ .goreleaser.yaml | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5eac1a800c..693afad691 100644 --- a/.gitignore +++ b/.gitignore @@ -61,3 +61,6 @@ cmd/plugin/release/LICENSE tmp/ test/junitreports/ tests/__snapshot__ + +# goreleaser artifacts +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a0ef6eb3d2..01c69c07c6 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,3 +1,5 @@ +version: 2 + project_name: ingress-nginx release: github: @@ -23,7 +25,8 @@ builds: -X k8s.io/ingress-nginx/version.RELEASE={{ .Tag }} archives: - id: ingress-nginx - builds: + ids: - ingress-nginx name_template: "kubectl-{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}" - format: tar.gz + formats: + - tar.gz From 5991cf48e5ea9f850a765c2820fe5dbaffde183f Mon Sep 17 00:00:00 2001 From: Alexandr Cherepanov Date: Thu, 3 Apr 2025 10:33:40 +0500 Subject: [PATCH 02/12] fix plugin release workflow: set GORELEASER_CURRENT_TAG to SemVer tag as goreleaser fails otherwise --- .github/workflows/plugin.yaml | 9 +++++++-- .goreleaser.yaml | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/plugin.yaml b/.github/workflows/plugin.yaml index 2ae1fa255d..466a00321e 100644 --- a/.github/workflows/plugin.yaml +++ b/.github/workflows/plugin.yaml @@ -34,17 +34,22 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Set GORELEASER_CURRENT_TAG + if: ${{ startsWith(github.ref, 'refs/tags/controller-') }} + run: echo "GORELEASER_CURRENT_TAG=${{ github.ref }}" | sed 's/refs\/tags\/controller-//' >> $GITHUB_ENV + - name: Run GoReleaser - if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: ${{ startsWith(github.ref, 'refs/tags/controller-') }} uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0 with: version: "~> v2" args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GORELEASER_CURRENT_TAG: ${{ env.GORELEASER_CURRENT_TAG }} - name: Update new version in krew-index - if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: ${{ startsWith(github.ref, 'refs/tags/controller-') }} uses: rajatjindal/krew-release-bot@3d9faef30a82761d610544f62afddca00993eef9 # v0.0.47 with: krew_template_file: cmd/plugin/krew.yaml diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 01c69c07c6..dd0297c283 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -22,7 +22,7 @@ builds: ldflags: | -s -w -X k8s.io/ingress-nginx/version.COMMIT={{ .Commit }} - -X k8s.io/ingress-nginx/version.RELEASE={{ .Tag }} + -X k8s.io/ingress-nginx/version.RELEASE=controller-{{ .Tag }} archives: - id: ingress-nginx ids: From 1b520cda522e8b8fc95d6fda11ce3580060df427 Mon Sep 17 00:00:00 2001 From: Alexandr Cherepanov Date: Thu, 3 Apr 2025 10:59:37 +0500 Subject: [PATCH 03/12] create local SemVer tag --- .github/workflows/plugin.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/plugin.yaml b/.github/workflows/plugin.yaml index 466a00321e..db20e1df88 100644 --- a/.github/workflows/plugin.yaml +++ b/.github/workflows/plugin.yaml @@ -38,6 +38,9 @@ jobs: if: ${{ startsWith(github.ref, 'refs/tags/controller-') }} run: echo "GORELEASER_CURRENT_TAG=${{ github.ref }}" | sed 's/refs\/tags\/controller-//' >> $GITHUB_ENV + - name: Create local SemVer tag + run: git tag "${{ env.GORELEASER_CURRENT_TAG }}" + - name: Run GoReleaser if: ${{ startsWith(github.ref, 'refs/tags/controller-') }} uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0 From a262c32435733c853a8a2a765c707df5d49cfb71 Mon Sep 17 00:00:00 2001 From: Alexandr Cherepanov Date: Thu, 3 Apr 2025 11:08:15 +0500 Subject: [PATCH 04/12] test: publish to the fork --- .goreleaser.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index dd0297c283..12e2c5eede 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -3,7 +3,7 @@ version: 2 project_name: ingress-nginx release: github: - owner: kubernetes + owner: alexintech name: ingress-nginx builds: - id: ingress-nginx From 3e529f0e6ec26c44baadb7faa51bb2f31e65dc37 Mon Sep 17 00:00:00 2001 From: Alexandr Cherepanov Date: Thu, 3 Apr 2025 12:25:57 +0500 Subject: [PATCH 05/12] disable publish in goreleaser and use action-gh-release instead --- .github/workflows/plugin.yaml | 11 ++++++++++- .goreleaser.yaml | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/plugin.yaml b/.github/workflows/plugin.yaml index db20e1df88..2b21c620a4 100644 --- a/.github/workflows/plugin.yaml +++ b/.github/workflows/plugin.yaml @@ -46,11 +46,20 @@ jobs: uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0 with: version: "~> v2" - args: release --clean + args: build --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GORELEASER_CURRENT_TAG: ${{ env.GORELEASER_CURRENT_TAG }} + - name: Upload artifacts to release + uses: softprops/action-gh-release@v2.2.1 + with: + files: | + dist/kubectl-ingress-nginx_* + dist/*_checksums.txt + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Update new version in krew-index if: ${{ startsWith(github.ref, 'refs/tags/controller-') }} uses: rajatjindal/krew-release-bot@3d9faef30a82761d610544f62afddca00993eef9 # v0.0.47 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 12e2c5eede..a6c897037d 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -5,6 +5,7 @@ release: github: owner: alexintech name: ingress-nginx + disable: true builds: - id: ingress-nginx goos: From 35835e722c91f833ae546230a1a9e9325c7718a3 Mon Sep 17 00:00:00 2001 From: Alexandr Cherepanov Date: Thu, 3 Apr 2025 12:28:36 +0500 Subject: [PATCH 06/12] disable publish in goreleaser and use action-gh-release instead --- .github/workflows/plugin.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/plugin.yaml b/.github/workflows/plugin.yaml index 2b21c620a4..b49ba51283 100644 --- a/.github/workflows/plugin.yaml +++ b/.github/workflows/plugin.yaml @@ -46,7 +46,7 @@ jobs: uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0 with: version: "~> v2" - args: build --clean + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GORELEASER_CURRENT_TAG: ${{ env.GORELEASER_CURRENT_TAG }} From 6564f4b7511d9929cef9f92987a6d85babee5005 Mon Sep 17 00:00:00 2001 From: Alexandr Cherepanov Date: Thu, 3 Apr 2025 12:47:53 +0500 Subject: [PATCH 07/12] add windows arm64 to krew --- .goreleaser.yaml | 5 ++--- cmd/plugin/krew.yaml | 16 +++++++++++----- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a6c897037d..3eda2c8abe 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -2,9 +2,6 @@ version: 2 project_name: ingress-nginx release: - github: - owner: alexintech - name: ingress-nginx disable: true builds: - id: ingress-nginx @@ -31,3 +28,5 @@ archives: name_template: "kubectl-{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}" formats: - tar.gz +checksum: + name_template: "kubectl-{{ .ProjectName }}_checksums.txt" diff --git a/cmd/plugin/krew.yaml b/cmd/plugin/krew.yaml index 0ef537d342..323a3deba3 100644 --- a/cmd/plugin/krew.yaml +++ b/cmd/plugin/krew.yaml @@ -13,29 +13,35 @@ spec: matchLabels: os: darwin arch: arm64 - {{addURIAndSha "https://github.com/kubernetes/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_darwin_arm64.tar.gz" .TagName }} + {{addURIAndSha "https://github.com/alexintech/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_darwin_arm64.tar.gz" .TagName }} bin: kubectl-ingress-nginx - selector: matchLabels: os: darwin arch: amd64 - {{addURIAndSha "https://github.com/kubernetes/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_darwin_amd64.tar.gz" .TagName }} + {{addURIAndSha "https://github.com/alexintech/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_darwin_amd64.tar.gz" .TagName }} bin: kubectl-ingress-nginx - selector: matchLabels: os: linux arch: amd64 - {{addURIAndSha "https://github.com/kubernetes/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_linux_amd64.tar.gz" .TagName }} + {{addURIAndSha "https://github.com/alexintech/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_linux_amd64.tar.gz" .TagName }} bin: kubectl-ingress-nginx - selector: matchLabels: os: linux arch: arm64 - {{addURIAndSha "https://github.com/kubernetes/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_linux_arm64.tar.gz" .TagName }} + {{addURIAndSha "https://github.com/alexintech/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_linux_arm64.tar.gz" .TagName }} bin: kubectl-ingress-nginx - selector: matchLabels: os: windows arch: amd64 - {{addURIAndSha "https://github.com/kubernetes/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_windows_amd64.tar.gz" .TagName }} + {{addURIAndSha "https://github.com/alexintech/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_windows_amd64.tar.gz" .TagName }} + bin: kubectl-ingress-nginx.exe + - selector: + matchLabels: + os: windows + arch: arm64 + {{addURIAndSha "https://github.com/alexintech/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_windows_arm64.tar.gz" .TagName }} bin: kubectl-ingress-nginx.exe From 7ab3a3768e640760248e4bdc2d0dc3393f9bd645 Mon Sep 17 00:00:00 2001 From: Alexandr Cherepanov Date: Thu, 3 Apr 2025 13:07:06 +0500 Subject: [PATCH 08/12] add windows arm64 to krew --- .github/workflows/plugin.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/plugin.yaml b/.github/workflows/plugin.yaml index b49ba51283..44562da0d6 100644 --- a/.github/workflows/plugin.yaml +++ b/.github/workflows/plugin.yaml @@ -56,7 +56,6 @@ jobs: with: files: | dist/kubectl-ingress-nginx_* - dist/*_checksums.txt env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From e904aa894dedc673e32e8529ac5557b2b5746a80 Mon Sep 17 00:00:00 2001 From: Alexandr Cherepanov Date: Thu, 3 Apr 2025 15:43:48 +0500 Subject: [PATCH 09/12] use goreleaser to generate krew manifest --- .github/workflows/plugin.yaml | 4 ++-- .goreleaser.yaml | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/plugin.yaml b/.github/workflows/plugin.yaml index 44562da0d6..48aece3df2 100644 --- a/.github/workflows/plugin.yaml +++ b/.github/workflows/plugin.yaml @@ -52,7 +52,7 @@ jobs: GORELEASER_CURRENT_TAG: ${{ env.GORELEASER_CURRENT_TAG }} - name: Upload artifacts to release - uses: softprops/action-gh-release@v2.2.1 + uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1 with: files: | dist/kubectl-ingress-nginx_* @@ -63,4 +63,4 @@ jobs: if: ${{ startsWith(github.ref, 'refs/tags/controller-') }} uses: rajatjindal/krew-release-bot@3d9faef30a82761d610544f62afddca00993eef9 # v0.0.47 with: - krew_template_file: cmd/plugin/krew.yaml + krew_template_file: dist/krew/ingress-nginx.yaml diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 3eda2c8abe..a85fd300bc 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -30,3 +30,10 @@ archives: - tar.gz checksum: name_template: "kubectl-{{ .ProjectName }}_checksums.txt" + +krews: + - skip_upload: true + homepage: "https://kubernetes.github.io/ingress-nginx/kubectl-plugin/" + description: "The official kubectl plugin for ingress-nginx." + short_description: "Interact with ingress-nginx" + url_template: "http://github.com/alexintech/ingress-nginx/releases/download/controller-{{ .Tag }}/{{ .ArtifactName }}" From b9d75d7314ea0a4b809118a0df604ae8f17bed86 Mon Sep 17 00:00:00 2001 From: Alexandr Cherepanov Date: Thu, 3 Apr 2025 17:24:50 +0500 Subject: [PATCH 10/12] small fixes --- .github/workflows/plugin.yaml | 6 +++-- .goreleaser.yaml | 9 +++++-- cmd/plugin/krew.yaml | 47 ----------------------------------- 3 files changed, 11 insertions(+), 51 deletions(-) delete mode 100644 cmd/plugin/krew.yaml diff --git a/.github/workflows/plugin.yaml b/.github/workflows/plugin.yaml index 48aece3df2..cfd5f079d8 100644 --- a/.github/workflows/plugin.yaml +++ b/.github/workflows/plugin.yaml @@ -34,11 +34,12 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Set GORELEASER_CURRENT_TAG + - name: Set a SemVer tag for goreleaser if: ${{ startsWith(github.ref, 'refs/tags/controller-') }} run: echo "GORELEASER_CURRENT_TAG=${{ github.ref }}" | sed 's/refs\/tags\/controller-//' >> $GITHUB_ENV - - name: Create local SemVer tag + # GoReleaser requires a SemVer tag to be present in the git repository + - name: Create a local SemVer tag run: git tag "${{ env.GORELEASER_CURRENT_TAG }}" - name: Run GoReleaser @@ -52,6 +53,7 @@ jobs: GORELEASER_CURRENT_TAG: ${{ env.GORELEASER_CURRENT_TAG }} - name: Upload artifacts to release + if: ${{ startsWith(github.ref, 'refs/tags/controller-') }} uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1 with: files: | diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a85fd300bc..3894b04248 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,8 +1,11 @@ version: 2 project_name: ingress-nginx + release: + # Disable uploading release assets to GitHub as it requires SemVer tags disable: true + builds: - id: ingress-nginx goos: @@ -20,7 +23,8 @@ builds: ldflags: | -s -w -X k8s.io/ingress-nginx/version.COMMIT={{ .Commit }} - -X k8s.io/ingress-nginx/version.RELEASE=controller-{{ .Tag }} + -X k8s.io/ingress-nginx/version.RELEASE={{ .Tag }} + archives: - id: ingress-nginx ids: @@ -28,6 +32,7 @@ archives: name_template: "kubectl-{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}" formats: - tar.gz + checksum: name_template: "kubectl-{{ .ProjectName }}_checksums.txt" @@ -36,4 +41,4 @@ krews: homepage: "https://kubernetes.github.io/ingress-nginx/kubectl-plugin/" description: "The official kubectl plugin for ingress-nginx." short_description: "Interact with ingress-nginx" - url_template: "http://github.com/alexintech/ingress-nginx/releases/download/controller-{{ .Tag }}/{{ .ArtifactName }}" + url_template: "http://github.com/kubernetes/ingress-nginx/releases/download/controller-{{ .Tag }}/{{ .ArtifactName }}" diff --git a/cmd/plugin/krew.yaml b/cmd/plugin/krew.yaml deleted file mode 100644 index 323a3deba3..0000000000 --- a/cmd/plugin/krew.yaml +++ /dev/null @@ -1,47 +0,0 @@ -apiVersion: krew.googlecontainertools.github.com/v1alpha2 -kind: Plugin -metadata: - name: ingress-nginx -spec: - shortDescription: Interact with ingress-nginx - description: | - The official kubectl plugin for ingress-nginx. - version: {{ .TagName }} - homepage: https://kubernetes.github.io/ingress-nginx/kubectl-plugin/ - platforms: - - selector: - matchLabels: - os: darwin - arch: arm64 - {{addURIAndSha "https://github.com/alexintech/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_darwin_arm64.tar.gz" .TagName }} - bin: kubectl-ingress-nginx - - selector: - matchLabels: - os: darwin - arch: amd64 - {{addURIAndSha "https://github.com/alexintech/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_darwin_amd64.tar.gz" .TagName }} - bin: kubectl-ingress-nginx - - selector: - matchLabels: - os: linux - arch: amd64 - {{addURIAndSha "https://github.com/alexintech/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_linux_amd64.tar.gz" .TagName }} - bin: kubectl-ingress-nginx - - selector: - matchLabels: - os: linux - arch: arm64 - {{addURIAndSha "https://github.com/alexintech/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_linux_arm64.tar.gz" .TagName }} - bin: kubectl-ingress-nginx - - selector: - matchLabels: - os: windows - arch: amd64 - {{addURIAndSha "https://github.com/alexintech/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_windows_amd64.tar.gz" .TagName }} - bin: kubectl-ingress-nginx.exe - - selector: - matchLabels: - os: windows - arch: arm64 - {{addURIAndSha "https://github.com/alexintech/ingress-nginx/releases/download/{{ .TagName }}/kubectl-ingress-nginx_windows_arm64.tar.gz" .TagName }} - bin: kubectl-ingress-nginx.exe From d5ab16970d7e8c82f087c7980f05b634ccbe29a2 Mon Sep 17 00:00:00 2001 From: Alexandr Cherepanov Date: Fri, 4 Apr 2025 10:02:18 +0500 Subject: [PATCH 11/12] cleanup github workflow --- .github/workflows/plugin.yaml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/plugin.yaml b/.github/workflows/plugin.yaml index cfd5f079d8..02b70758dd 100644 --- a/.github/workflows/plugin.yaml +++ b/.github/workflows/plugin.yaml @@ -10,6 +10,7 @@ permissions: jobs: release-plugin: runs-on: ubuntu-latest + if: ${{ startsWith(github.ref, 'refs/tags/controller-') }} steps: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -25,17 +26,7 @@ jobs: go-version: ${{ env.GOLANG_VERSION }} check-latest: true - - name: Run GoReleaser Snapshot - if: ${{ ! startsWith(github.ref, 'refs/tags/') }} - uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0 - with: - version: "~> v2" - args: release --snapshot --clean - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Set a SemVer tag for goreleaser - if: ${{ startsWith(github.ref, 'refs/tags/controller-') }} run: echo "GORELEASER_CURRENT_TAG=${{ github.ref }}" | sed 's/refs\/tags\/controller-//' >> $GITHUB_ENV # GoReleaser requires a SemVer tag to be present in the git repository @@ -43,7 +34,6 @@ jobs: run: git tag "${{ env.GORELEASER_CURRENT_TAG }}" - name: Run GoReleaser - if: ${{ startsWith(github.ref, 'refs/tags/controller-') }} uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0 with: version: "~> v2" @@ -53,7 +43,6 @@ jobs: GORELEASER_CURRENT_TAG: ${{ env.GORELEASER_CURRENT_TAG }} - name: Upload artifacts to release - if: ${{ startsWith(github.ref, 'refs/tags/controller-') }} uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1 with: files: | @@ -62,7 +51,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Update new version in krew-index - if: ${{ startsWith(github.ref, 'refs/tags/controller-') }} uses: rajatjindal/krew-release-bot@3d9faef30a82761d610544f62afddca00993eef9 # v0.0.47 with: krew_template_file: dist/krew/ingress-nginx.yaml From 2519739a10837a1033f1a108adc8cc84a1ef47fe Mon Sep 17 00:00:00 2001 From: Alexandr Cherepanov Date: Fri, 4 Apr 2025 10:14:12 +0500 Subject: [PATCH 12/12] cleanup github workflow --- .github/workflows/plugin.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/plugin.yaml b/.github/workflows/plugin.yaml index 02b70758dd..8301f8d294 100644 --- a/.github/workflows/plugin.yaml +++ b/.github/workflows/plugin.yaml @@ -45,8 +45,7 @@ jobs: - name: Upload artifacts to release uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1 with: - files: | - dist/kubectl-ingress-nginx_* + files: dist/kubectl-ingress-nginx_* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}