We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95173dd commit a644b69Copy full SHA for a644b69
.github/workflows/release.yaml
@@ -110,6 +110,19 @@ jobs:
110
go-version-file: "go.mod"
111
cache: true
112
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
+
126
- name: Log into ghcr.io
127
if: ${{ github.event_name != 'pull_request' }}
128
uses: docker/login-action@v3
0 commit comments