File tree Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Original file line number Diff line number Diff line change 55
55
VERSION="v0.0.0-manual-${GIT_SHA}"
56
56
fi
57
57
echo "goreleaser_args=--clean --skip=validate" >> $GITHUB_OUTPUT
58
- elif [[ $GITHUB_REF == refs/tags/* ]]; then
59
- VERSION="${GITHUB_REF#refs/tags/}"
60
- echo "goreleaser_args=--clean" >> $GITHUB_OUTPUT
61
- elif [[ $GITHUB_REF == refs/heads/main ]]; then
62
- VERSION="v2.0.0-main"
63
- echo "goreleaser_args=--clean --skip=validate" >> $GITHUB_OUTPUT
64
58
elif [[ $GITHUB_REF == refs/pull/* ]]; then
65
59
GIT_TAG=$(git describe --tags --abbrev=0)
66
60
PR_NUM=$(echo "${GITHUB_REF}" | sed -E 's|refs/pull/([^/]+)/?.*|\1|')
@@ -108,19 +102,6 @@ jobs:
108
102
- name : Prep Go Runner
109
103
uses : ./.github/actions/prep-go-runner
110
104
111
- # We publish a rolling main release for every commit to main. Deleting the release
112
- # ensures that the tagged commit is not stale. Goreleaser will create a new tag
113
- # and release for the tagged commit.
114
- - name : Delete v2.0.0-main release if it exists
115
- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
116
- continue-on-error : true
117
- run : |
118
- set -x
119
- echo "Deleting the v2.0.0-main release"
120
- gh release delete v2.0.0-main --repo ${{ github.repository }} --yes --cleanup-tag
121
- env :
122
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
123
-
124
105
- name : Log into ghcr.io
125
106
if : ${{ github.event_name != 'pull_request' }}
126
107
uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
Original file line number Diff line number Diff line change @@ -176,6 +176,7 @@ release:
176
176
prerelease : " auto"
177
177
mode : " replace"
178
178
replace_existing_artifacts : true
179
+ target_commitish : " {{ .FullCommit }}"
179
180
header : |
180
181
{{ if eq .Env.VERSION "v2.0.0-main" }}
181
182
🚀 Nightly build of kgateway!
You can’t perform that action at this time.
0 commit comments