Skip to content

Commit

Permalink
Don't accidentally publish snapshot releases
Browse files Browse the repository at this point in the history
Issue: #428
  • Loading branch information
mlopatkin committed Jan 25, 2025
1 parent 790d638 commit a76804a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflow-templates/includes/releases.ftlh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<#macro createRelease tag>
<#macro createRelease tag prerelease="true">
uses: ncipollo/release-action@[=RELEASE_ACTION_VERSION]
if: ${{ success() }}
with:
allowUpdates: false
bodyFile: docs/releases/release_0.24.md # This is a temporary location
makeLatest: false
draft: true
prerelease: [=prerelease]
removeArtifacts: true
tag: [=tag]
updateOnlyUnreleased: true
Expand All @@ -18,7 +19,9 @@
artifactErrorsFailBuild: true
artifacts: build/distributions/*
omitBody: true
omitDraftDuringUpdate: true
omitName: true
omitPrereleaseDuringUpdate: true
removeArtifacts: false
replacesArtifacts: false
tag: [=tag]
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/releasing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
bodyFile: docs/releases/release_0.24.md # This is a temporary location
makeLatest: false
draft: true
prerelease: true
removeArtifacts: true
tag: latest-snapshot
updateOnlyUnreleased: true
Expand All @@ -66,7 +67,9 @@ jobs:
artifactErrorsFailBuild: true
artifacts: build/distributions/*
omitBody: true
omitDraftDuringUpdate: true
omitName: true
omitPrereleaseDuringUpdate: true
removeArtifacts: false
replacesArtifacts: false
tag: latest-snapshot
Expand Down Expand Up @@ -106,7 +109,9 @@ jobs:
artifactErrorsFailBuild: true
artifacts: build/distributions/*
omitBody: true
omitDraftDuringUpdate: true
omitName: true
omitPrereleaseDuringUpdate: true
removeArtifacts: false
replacesArtifacts: false
tag: latest-snapshot
Expand Down

0 comments on commit a76804a

Please sign in to comment.