Skip to content

Commit 72fefe0

Browse files
philipbalinovclaude
andcommitted
dev: mark unstable releases as pre-release and add debug info
- Add prerelease: true to goreleaser-unstable config - Print github.ref, github.ref_name, and github.event_name for debugging Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1851a50 commit 72fefe0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/.goreleaser-unstable.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,3 +279,4 @@ docker_manifests: # https://goreleaser.com/customization/docker_manifest/
279279
release:
280280
replace_existing_artifacts: true
281281
make_latest: false
282+
prerelease: true

.github/workflows/goreleaser.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
id: skip-publish
7272
if: contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'pre') || contains(github.ref, 'rc') || inputs.skip-publish == true
7373
run: |
74-
echo "Skipping publish for alpha and beta tags"
74+
echo "Skipping publish for non-release tags"
7575
echo "skip-publish=true" >> $GITHUB_OUTPUT
7676
echo "skip-publish=true" >> $GITHUB_ENV
7777
@@ -149,7 +149,7 @@ jobs:
149149
# This is because a goreleaser dep was changed to https://github.com/goreleaser/nfpm/releases/tag/v2.41.2
150150
# created a discussion on the issue here https://github.com/orgs/goreleaser/discussions/5943
151151

152-
- name: Run GoReleaser (w/ Docker Release)
152+
- name: Run GoReleaser and promote latest
153153
if: ${{ inputs.skip-publish != true && steps.skip-publish.outputs.skip-publish != 'true' }}
154154
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
155155
with:
@@ -175,7 +175,7 @@ jobs:
175175
TSIGN_ACCESS_TOKEN: ${{ steps.get_token.outputs.TSIGN_ACCESS_TOKEN }}
176176
MAKE_LATEST: ${{ inputs.make-latest == false && 'false' || 'true' }}
177177

178-
- name: Run GoReleaser (w/o Docker Release)
178+
- name: Run GoReleaser without promoting 'latest'
179179
if: ${{ inputs.skip-publish == true || steps.skip-publish.outputs.skip-publish == 'true' }}
180180
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
181181
with:

0 commit comments

Comments
 (0)