build: fix draft/published status for new releases

Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
Jakob Borg
2026-05-09 13:51:17 +02:00
parent 7435e762fb
commit 658ea62052

View File

@@ -920,6 +920,7 @@ jobs:
packages/syncthing-*.tar.gz \
packages/syncthing-*.zip \
packages/syncthing_*.deb
gh release edit "$VERSION" --draft=false
PKGS=$(pwd)/packages
cd /tmp # gh will not release for repo x while inside repo y
@@ -928,15 +929,15 @@ jobs:
if ! gh release view --json name "$VERSION" >/dev/null 2>&1 ; then
gh release create "$VERSION" \
$maybePrerelease \
--draft \
--title "$VERSION" \
--notes "https://github.com/syncthing/syncthing/releases/tag/$VERSION"
fi
gh release upload --clobber "$VERSION" \
$PKGS/*.asc \
$PKGS/*${repo}*
gh release edit "$VERSION" --draft=false
done
gh release edit "$VERSION" --draft=false
env:
GH_TOKEN: ${{ secrets.ACTIONS_GITHUB_TOKEN }}