Skip to content

Commit

Permalink
Create public releases
Browse files Browse the repository at this point in the history
  • Loading branch information
bitdivine committed Apr 14, 2023
1 parent 151490b commit a4578c1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,14 @@ jobs:
else gh release create --title "Release for tags/$tag" --draft --notes "Build artefacts from tag: $tag" "$tag" "${artefacts[@]}"
fi
: Optionally, make the release public
[[ "$tag" != release-* ]] || { echo "Making release public" ; gh release edit "$tag" --draft=false ; }
[[ "$tag" != release-* ]] || {
echo "Making release public"
gh release edit "$tag" --draft=false
latest_release_name="$(gh release view --json tagName --jq .tagName)"
if [[ "$latest_release_name" != release-* ]] || [[ "$latest_release_name" < "$tag" ]] ; then
gh release edit "$tag" --latest=true
fi
}
done
# If this was triggered by a push to main, update the 'tip' release.
# This can be tested by pushing to a branch called 'test-release'.
Expand Down

0 comments on commit a4578c1

Please sign in to comment.