Skip to content

Commit a644b69

Browse files
authored
.github: Re-create the rolling main release (#10699)
Signed-off-by: timflannagan <[email protected]>
1 parent 95173dd commit a644b69

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/release.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,19 @@ jobs:
110110
go-version-file: "go.mod"
111111
cache: true
112112

113+
# We publish a rolling main release for every commit to main. Deleting the release
114+
# ensures that the tagged commit is not stale. Goreleaser will create a new tag
115+
# and release for the tagged commit.
116+
- name: Delete v2.0.0-main release if it exists
117+
if: ${{ github.ref == 'refs/heads/main' }}
118+
continue-on-error: true
119+
run: |
120+
set -x
121+
echo "Deleting the v2.0.0-main release"
122+
gh release delete v2.0.0-main --repo ${{ github.repository }} --yes --cleanup-tag
123+
env:
124+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
125+
113126
- name: Log into ghcr.io
114127
if: ${{ github.event_name != 'pull_request' }}
115128
uses: docker/login-action@v3

0 commit comments

Comments
 (0)